home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d6 / pcdraft.arc / PCD2-2.EXE / lha / DRAFT2.DOC < prev    next >
Text File  |  1990-02-06  |  128KB  |  3,933 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                    PC-Draft II (tm)
  16.  
  17.                                      User Manual
  18.  
  19.                                      Release 3.24
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.               Copyright 1986,1987,1988,1989,1990 - All Rights reserved
  47.  
  48.                                    Natural Software
  49.                                 19 South fifth Street
  50.                              St. Charles Illinois, 60174
  51.                                     (708) 377-7320
  52.  
  53.  
  54.  
  55.  
  56.      LICENSE
  57.  
  58.      THE PC-Draft II SOFTWARE AND MANUAL IS COPYRIGHTED, ALL RIGHTS ARE RESE-
  59.      RVED. YOU HAVE PURCHASED A LICENSE TO USE THIS SOFTWARE ON ONE MACHINE AT A
  60.      TIME. YOU ARE AUTHORIZED TO MAKE COPIES OF PC-DRAFT II FOR THE SOLE PURPOSE
  61.      OF BACKING UP YOUR SOFTWARE AND PROTECTING YOUR INVESTMENT FROM LOSS.
  62.  
  63.      Note: this copy of PC-Draft II is being distributed as Shareware. This
  64.      means that you may copy the disk just as you received it and you may give
  65.      it to others for their trial use. You are also permitted and encouraged to
  66.      upload this version to electronic bulletin board services. You may not,
  67.      however resell or collect any fee for the distribution of PC-Draft without
  68.      the permission of Natural Software. (This does not include the normal fees
  69.      for using bulletin boards.) If you continue to use PC-Draft II after your
  70.      trial use, you must pay the purchase price as detailed below.
  71.  
  72.  
  73.      WARRANTY
  74.  
  75.      THIS SOFTWARE WILL PERFORM AS DESCRIBED HEREIN ONLY IF PROPERLY APPLIED.
  76.      OUR LIABILITY TO YOU IS LIMITED TO REPLACING THE SOFTWARE (FOR REGISTERED
  77.      USERS). WE HAVE NO LIABILITY TO YOU FOR ANY DAMAGE OR LOSS, INCLUDING
  78.      SPECIAL, INCIDENTAL, OR CONSEQUENTIAL, CAUSED BY THIS SOFTWARE, DIRECTLY OR
  79.      INDIRECTLY.
  80.  
  81.      YOU AGREE TO THE TERMS OF THIS LICENSE BY YOUR DECISION TO USE THIS
  82.      SOFTWARE.
  83.  
  84.               _______
  85.          ____|__     |               (tm)
  86.       --|       |    |-------------------
  87.         |   ____|__  |  Association of
  88.         |  |       |_|  Shareware
  89.         |__|   o   |    Professionals
  90.       -----|   |   |---------------------
  91.            |___|___|    MEMBER
  92.  
  93.  
  94.      This program is produced by a member of the Association of Shareware
  95.      Professionals (ASP).  ASP wants to make sure that the shareware 
  96.      principle works for you. If you are unable to resolve a shareware-
  97.      related problem with an ASP member by contacting the member directly,
  98.      ASP may be able to help. The ASP Ombudsman can help you resolve a 
  99.      dispute or problem with an ASP member, but does not provide technical
  100.      support for members' products. Please write to the ASP Ombudsman at 
  101.      P.O. Box 5786, Bellevue, WA 98006 or send a Compuserve message via
  102.      easyplex to ASP Ombudsman 70007,3536
  103.  
  104.                                           i
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.                                   Table of contents
  118.  
  119.  
  120.      Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   v
  121.           Shareware  . . . . . . . . . . . . . . . . . . . . . . . . . . . .   2
  122.                What registered users get . . . . . . . . . . . . . . . . . .   2
  123.           System Requirements  . . . . . . . . . . . . . . . . . . . . . . .   3
  124.           Terminology  . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  125.           Installation . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  126.                MicroSoft Mouse . . . . . . . . . . . . . . . . . . . . . . .   4
  127.                Other Mice  . . . . . . . . . . . . . . . . . . . . . . . . .   5
  128.           Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   5
  129.           Files used . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  130.           File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  131.  
  132.      The Basics  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   7
  133.           Starting PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . .   7
  134.           Cursor Movement  . . . . . . . . . . . . . . . . . . . . . . . . .   7
  135.                Cursor Increment  . . . . . . . . . . . . . . . . . . . . . .   7
  136.                Suspend Cursor  . . . . . . . . . . . . . . . . . . . . . . .   7
  137.                Change Cursor . . . . . . . . . . . . . . . . . . . . . . . .   8
  138.           Menu Selections  . . . . . . . . . . . . . . . . . . . . . . . . .   8
  139.                Display Menu Bar  . . . . . . . . . . . . . . . . . . . . . .   8
  140.           The Control Panel  . . . . . . . . . . . . . . . . . . . . . . . .   9
  141.           The Drawing Area . . . . . . . . . . . . . . . . . . . . . . . . .   9
  142.                Moving around . . . . . . . . . . . . . . . . . . . . . . . .  10
  143.                Direct Move . . . . . . . . . . . . . . . . . . . . . . . . .  10
  144.                Home  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  145.           Using markers  . . . . . . . . . . . . . . . . . . . . . . . . . .  10
  146.                Setting markers . . . . . . . . . . . . . . . . . . . . . . .  10
  147.                Jump to marker  . . . . . . . . . . . . . . . . . . . . . . .  10
  148.           Clearing the Screen  . . . . . . . . . . . . . . . . . . . . . . .  11
  149.           Erasing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  150.           Undo Command . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  151.           Saving Your Work . . . . . . . . . . . . . . . . . . . . . . . . .  12
  152.                Directory Search  . . . . . . . . . . . . . . . . . . . . . .  13
  153.           Ending PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . . .  13
  154.  
  155.      Drawing Commands  . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  156.                Line  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  14
  157.                Multi-Line  . . . . . . . . . . . . . . . . . . . . . . . . .  14
  158.                Free Draw . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  159.                Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  160.                Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  161.                Circle  . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  162.                Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  163.                Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  164.                Paint . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  165.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  166.                Text  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  167.                Write . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  168.  
  169.  
  170.                                           ii
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.                Object  . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  184.                Drop Object . . . . . . . . . . . . . . . . . . . . . . . . .  17
  185.                Object Functions  . . . . . . . . . . . . . . . . . . . . . .  17
  186.                Transfer to Font  . . . . . . . . . . . . . . . . . . . . . .  18
  187.                Zoom  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  188.           Goodies  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  189.                Just paint  . . . . . . . . . . . . . . . . . . . . . . . . .  19
  190.                SpraY Can . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  191.                Kursor  . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  192.                Mouse cursor  . . . . . . . . . . . . . . . . . . . . . . . .  20
  193.                grId  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
  194.                Quick view  . . . . . . . . . . . . . . . . . . . . . . . . .  21
  195.                sNap  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  196.                Color . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  197.                Window  . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  198.  
  199.      Patterns  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  200.           Loading Patterns . . . . . . . . . . . . . . . . . . . . . . . . .  22
  201.           Selecting Patterns . . . . . . . . . . . . . . . . . . . . . . . .  22
  202.           Creating and changing Patterns . . . . . . . . . . . . . . . . . .  22
  203.           Saving Patterns  . . . . . . . . . . . . . . . . . . . . . . . . .  22
  204.  
  205.      Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  206.           Saving Objects . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  207.           Retrieving Objects . . . . . . . . . . . . . . . . . . . . . . . .  23
  208.  
  209.      Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  210.           Using Fonts  . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  211.           Creating, changing Fonts . . . . . . . . . . . . . . . . . . . . .  24
  212.           Saving Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  213.  
  214.      Macros  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  215.           Using Macros . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  216.           Creating Macros  . . . . . . . . . . . . . . . . . . . . . . . . .  26
  217.           Suspend Cursor Increment . . . . . . . . . . . . . . . . . . . . .  26
  218.           Relative [+/-] Cursor Increment  . . . . . . . . . . . . . . . . .  26
  219.           .MAC file structure  . . . . . . . . . . . . . . . . . . . . . . .  27
  220.           Importing text files:  . . . . . . . . . . . . . . . . . . . . . .  27
  221.  
  222.      Graphs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  223.           Editing Points . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  224.           Saving Points  . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  225.           loading Points . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  226.           Graph Type . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  227.           Drawing graphs . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  228.  
  229.      Drawing Mode  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  31
  230.  
  231.      Printing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  232.           Printer resolution modes . . . . . . . . . . . . . . . . . . . . .  32
  233.                IBM dot matrix  . . . . . . . . . . . . . . . . . . . . . . .  33
  234.                Epson dot matrix  . . . . . . . . . . . . . . . . . . . . . .  33
  235.  
  236.                                          iii
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.                HP LaserJet+  . . . . . . . . . . . . . . . . . . . . . . . .  33
  250.                IDS Microprism  . . . . . . . . . . . . . . . . . . . . . . .  34
  251.                C.Itoh 8510-1550  . . . . . . . . . . . . . . . . . . . . . .  34
  252.                GEM .IMG  . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  253.           Print current screen window  . . . . . . . . . . . . . . . . . . .  34
  254.           Print full drawing . . . . . . . . . . . . . . . . . . . . . . . .  35
  255.           Print partial screen . . . . . . . . . . . . . . . . . . . . . . .  35
  256.  
  257.      Screen Capture  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  36
  258.  
  259.      The PIX graphics language . . . . . . . . . . . . . . . . . . . . . . .  37
  260.                Starting PIX  . . . . . . . . . . . . . . . . . . . . . . . .  38
  261.                Trace mode  . . . . . . . . . . . . . . . . . . . . . . . . .  38
  262.                Exit PIX  . . . . . . . . . . . . . . . . . . . . . . . . . .  38
  263.           PIX Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  264.                Variables . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  265.                Assign (LET)  . . . . . . . . . . . . . . . . . . . . . . . .  39
  266.                Increment . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  267.                Decrement . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  268.           Cursor Movement Commands . . . . . . . . . . . . . . . . . . . . .  40
  269.                Gotoxy  . . . . . . . . . . . . . . . . . . . . . . . . . . .  40
  270.           Screen moves . . . . . . . . . . . . . . . . . . . . . . . . . . .  41
  271.           Drawing Commands . . . . . . . . . . . . . . . . . . . . . . . . .  41
  272.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  42
  273.           Non Drawing Commands . . . . . . . . . . . . . . . . . . . . . . .  44
  274.           File Commands  . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  275.           Program Control Statements . . . . . . . . . . . . . . . . . . . .  44
  276.           Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  277.           New PIX commands . . . . . . . . . . . . . . . . . . . . . . . . .  45
  278.                Pause . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  279.                Getkey  . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  280.                Case  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  281.                Jmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  282.                Popup . . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  283.                Popdown . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  284.                Pgotoxy . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  285.                Tgotoxy . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  286.                Print . . . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  287.           PC-Draft commands not supported  . . . . . . . . . . . . . . . . .  49
  288.  
  289.      Summary of PIX commands . . . . . . . . . . . . . . . . . . . . . . . .  50
  290.  
  291.      Summary of Drawing Commands . . . . . . . . . . . . . . . . . . . . . .  52
  292.  
  293.      Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.                                           iv
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.                                      Introduction
  316.  
  317.  
  318.      PC-Draft II is a high resolution pixel oriented drawing and graphing
  319.      utility, which is designed to facilitate a variety of drawing and drafting
  320.      needs.  Some of PC-Draft II's features:
  321.  
  322.           o    You can produce drawings up to 1280 by 700 dots using IBM's color
  323.                graphic adaptor high resolution graphics mode (640 x 200 dots per
  324.                screen). Such a drawing will more than fill an 8-1/2 x 11 inch
  325.                printed output (at 150 dots per inch resolution).
  326.  
  327.           o    Built-in functions allow you to draw circles, lines, boxes, arcs
  328.                and curves; draw bar, line and pie graphs; create patterns with
  329.                which to fill areas; cut and paste objects and save objects to
  330.                files for later use.  
  331.  
  332.           o    PC-Draft is both menu driven and command driven -- all drawing
  333.                commands may be selected from the menus or may be entered by a
  334.                single keystroke command such as [C] to draw a circle or [L] for
  335.                line.
  336.  
  337.           o    You can zoom in to precisely edit one pixel at a time.
  338.  
  339.           o    You can record graphic keyboard macros saved in files for later
  340.                playback and for animation effects.
  341.  
  342.           o    You can load and edit fonts. 
  343.  
  344.           o    You can print your drawings on a variety of printers including
  345.                those compatible with IBM and Epson Dot matrix, HP Laserjet+, and
  346.                HP DeskJet printers. Also you can save the output to the printer
  347.                in a file for later batch printing.
  348.  
  349.           o    You can save portions of the screen or full drawings in GEM .IMG
  350.                file format. These can then be directly imported into such Desk
  351.                Top Publishing programs as Ventura Publisher and WordPerfect 5.0.
  352.  
  353.           o    Drawing and Pic files may be saved in compressed format to save
  354.                disk space.
  355.  
  356.           o    You can set up to ten place markers anywhere in the drawing to
  357.                jump to.
  358.  
  359.           o    Drawing grids are displayable at any spacing with optional "grid-
  360.                lock" (Snap).
  361.  
  362.           o    A pop-up status panel shows x and y cursor position, position of
  363.                the screen window in respect to the full drawing area, the
  364.                current pattern, the current cursor increment value, and more.
  365.  
  366.  
  367.  
  368.      Introduction                                                         Page 1
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.           o    An undo function repairs damage done by your last command.
  376.  
  377.           o    A preview function displays the entire drawing on the screen.
  378.  
  379.           o    A graphics presentation language called PIX performs all PC-
  380.                Draft II commands from a script you write without displaying any
  381.                cursor or menu interaction. PIX allows you to create animated
  382.                sequences of: loading screens, drawing forms and graphs and
  383.                adding text and more.
  384.  
  385.           o    Another program: CAPTURE.COM allows you to capture screen images
  386.                from other programs (both text and graphic screens), to be loaded
  387.                into PC-Draft for enhancement and printing.
  388.  
  389.           o    The latest additions to the Font, Macro, and Object libraries are
  390.                included.
  391.  
  392.  
  393.      Shareware
  394.  
  395.      PC-Draft II is copyrighted. It is not a public domain program. It is being
  396.      distributed as Shareware, which means that unmodified copies of the soft-
  397.      ware and documentation may be freely copied and shared. We ask in return
  398.      that should you find PC-Draft II to be useful, you become a registered
  399.      user. You become registered by sending $50.00 to:
  400.  
  401.  
  402.                                    Natural Software
  403.                                 19 South fifth Street
  404.                              St. Charles Illinois, 60174
  405.  
  406.  
  407.      Or call with your VISA or MasterCard number: (708) 377-7320. The file:
  408.      ORDER.FRM on the disk can be printed and used as an order form.
  409.  
  410.      What do you get by becoming registered? What registered users get:
  411.  
  412.  
  413.  
  414.           o    The latest version of the software without the introductory
  415.                ShareWare screen.
  416.  
  417.           o    Free subscription to Compuserve including: your own private
  418.                User ID and Password, $15 introductory usage credit, free sub-
  419.                scription to Compuserve's monthly member magazine, Online Today.
  420.  
  421.           o    Free telephone support: You can talk directly to the author (Mike
  422.                Allen). Many of the features in this latest version of PC-Draft
  423.                came directly from suggestions and wishes from users. You can
  424.                also communicate with the author via compuserve. Send an EMAIL
  425.                message to Mike Allen (PID: 70047,744)
  426.  
  427.  
  428.  
  429.      Page 2                                                          PC-Draft II
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.        o    FREE!! -- when you register, you are entitled to a free introductory
  437.                subscription to CompuServe Invormation Service -- the biggest national
  438.                BBS! You will receive: a private user ID number and Password,
  439.                a $15 usage credit (up to 2 1/2 hours connect time at 2400 baud), 
  440.                a complimentary subscrition to CompuServes's monthly computing magazine,
  441.                Online Today.
  442.  
  443.                o    The latest additions to the Font, Macro, and Object libraries:
  444.                They require too much disk space to distribute with the Shareware
  445.                version. And, as a registered user you will be notified when new
  446.                libraries become available.
  447.  
  448.           o    A collection of drawings made with PC-Draft II which you can
  449.                incorporate into you own work.
  450.  
  451.           o    A typeset quality user manual profusely illustrated with drawings
  452.                made with PC-Draft II and full of helpful hints.
  453.  
  454.           o    As a registered user you will be informed of new versions of PC-
  455.                Draft.
  456.  
  457.      The shareware philosophy is to pay smaller amounts for well crafted and
  458.      useful software from developers who cannot spend the millions of dollars on
  459.      packaging and marketing necessary to compete with the large software
  460.      development companies. You benefit by being able to try a wider variety of
  461.      software products to find the ones that suit your particular purpose. And
  462.      the trial is free. The shareware developer benefits from being able to
  463.      distribute his work to a wider audience than would be possible through
  464.      normal channels.
  465.  
  466.      Your share of the responsibility for shareware to continue, and to support
  467.      the development of more and better products is to distribute your shareware
  468.      programs to others and become a registered user of those products you like
  469.      and use. 
  470.  
  471.  
  472.      System Requirements
  473.  
  474.      PC-Draft II is compatible with the IBM PC, XT, and AT and "true compatible"
  475.      microcomputers with at least 384k of memory and with MS-DOS or PC-DOS
  476.      versions 2.0 or later.  An IBM or compatible Color Graphics Display adapter
  477.      is required.  PC-Draft II performs direct access of the display buffer at
  478.      address B8000 hex.  PC-Draft II will not work with monochrome displays or
  479.      foreign display interface boards such as Hercules. (However, it will work
  480.      with one of the shareware CGA emulators such as HGCIBM or SIMCGA. Look for
  481.      them on your BBS.)
  482.  
  483.      If you have a problem with your display, you might try pressing the [Ctrl +
  484.      F1] key combination to cycle through the different colors. The is par-
  485.      ticularly necessary on the PC-Jr.
  486.  
  487.      PC-Draft II is memory hungry. For the sake of speed, an entire bit mapped
  488.      drawing is kept in memory, rather than being paged to and from disk. If you
  489.      like to load lots of stay resident utilities, you better have a 512k
  490.      machine, or unload them before running PC-Draft II.  The PC-Draft II
  491.      program itself occupies about 85k.  As you move the screen window to new
  492.  
  493.  
  494.  
  495.      Introduction                                                         Page 3
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.      portions of a large drawing more memory is allocated, 16k per screen.  If
  509.      you start with less than 128k available, you will surely get an error
  510.      message:  Out of memory!, then all you can do is save your drawing and quit
  511.      PC-Draft II.
  512.  
  513.  
  514.      Terminology
  515.  
  516.      Brackets are used to indicate keystrokes. For instance: [Ctrl + PgUp] means
  517.      to press the Control key and the PgUp keys together. Whereas: [F3][P][S]
  518.      means to press those keys in sequence. The four arrow keys on the numeric
  519.      keypad are indicated as: [v][<][>][v].  Filenames are given in all upper-
  520.      case such as: PATTERN1.PAT.
  521.  
  522.  
  523.      Installation
  524.  
  525.      If you are using a hard disk, create a sub-directory for PC-Draft II with
  526.      the following sub-directories: PAT, MAC, FON, OBJ, PIC, DWG, SCR. If you
  527.      are using DOS 3.2 or above, simply use the XCOPY command to copy all files
  528.      from all sub-directories to your pc-draft sub-directory on your hard disk
  529.      as follows:
  530.  
  531.                          CD \
  532.                          MD PC-DRAFT
  533.                          CD PC-DRAFT
  534.                          XCOPY A:*.* /S
  535.  
  536.      The sub-directory names correspond to the default filename extensions for
  537.      the various files PC-Draft II uses and will help keep things organized.
  538.  
  539.      If yours is a floppy based system, simply make a backup copy of the dis-
  540.      tribution floppy for use.
  541.  
  542.      The executable PC-Draft program consists of the main program: DRAFT2.EXE
  543.      and a configuration file: DRAFT2.CFG. This configuration file must both be
  544.      on your current directory. If you are using a floppy disk based system, you
  545.      must leave the diskette containing DRAFT.CFG in the disk drive when you
  546.      exit PC-Draft.
  547.  
  548.  
  549.      MicroSoft Mouse
  550.  
  551.      If you have a mouse compatible with Microsoft's Mouse driver software, PC-
  552.      Draft will automatically use the mouse if the mouse driver is loaded.
  553.  
  554.      Be sure the mouse driver is properly loaded (either with the CONFIG.SYS
  555.      DEVICE=MOUSE.SYS command, or from the keyboard (or in your AUTOEXEC.BAT)
  556.      run the MOUSE.COM program.
  557.  
  558.  
  559.  
  560.  
  561.      Page 4                                                          PC-Draft II
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.      Mouse movement emulates the arrow keys, the left button simulates the [F2]
  575.      key (to pop-up the menus),  the right button simulates the [Enter] key (to
  576.      terminate drawing commands and to select drawing modes when in zoom mode),
  577.      and both mouse buttons pressed together simulates the [Esc] key to exit
  578.      from a menu or process.
  579.  
  580.  
  581.      Other Mice
  582.  
  583.      Most other brands of mice should work as described above if:
  584.  
  585.      1.   They can be configured to emulate Microsoft's Mouse driver or:
  586.  
  587.      2.   You can setup your mouse to:
  588.  
  589.           a.   convert movement into the appropriate arrow key.
  590.           b.   simulate the [Enter] key with the right button.
  591.           c.   simulate the [F2] key with the left button.
  592.           d.   simulate the [Esc] key with both buttons (or the third button?).
  593.  
  594.      Please let us know if you have a problem with your mouse.
  595.  
  596.      If you do not have a mouse and intend to do much work with PC-Draft, it is
  597.      strongly recommended that you get one. You'll love the difference. Some
  598.      commands described below were specifically designed for mice. They do not
  599.      work too well without a mouse.
  600.  
  601.      If you are using the cursor keys instead of a mouse, it is strongly recom-
  602.      mended that you use one of the many shareware or public domain keyboard
  603.      speedup programs available. This will make cursor movement around the
  604.      graphics screen much nicer. If you have an IBM AT, look for SETKEY.COM on
  605.      your bulletin boards. If you have and XT or compatible, look for
  606.      QUICKEY.COM. Both of these were published in PC Magazine and can be down
  607.      loaded from their BBS. Also the shareware programs: 
  608.  
  609.                     FASTKEY.COM from:
  610.  
  611.                          Biologic Corp.
  612.                          P.O. Box 1267
  613.                          Manassas, Virginia  22110
  614.  
  615.                     and KBFIX2.COM from:
  616.  
  617.                          Skip Gilbrech
  618.                          90 Lexington Ave. #10-G
  619.                          New York, NY 10016   ( Compuserve: 71445,534 )
  620.  
  621.  
  622.      Printers
  623.  
  624.  
  625.  
  626.  
  627.      Introduction                                                         Page 5
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.      The current version of PC-Draft II will work with several families of
  642.      printers for graphics output; Some printers which claim to emulate the IBM
  643.      Graphics or Epson dot matrix do not support all resolution modes, so you
  644.      will have to experiment to see which is appropriate for your brand.
  645.  
  646.      Refer to the READ.ME file on the disk for information about additional
  647.      printer support.
  648.  
  649.  
  650.      Files used
  651.  
  652.      The only necessary files used by PC-Draft are the main code file:
  653.      DRAFT2.EXE and the configuration file: DRAFT2.CFG.  all other files are
  654.      optional.
  655.  
  656.  
  657.      File Names
  658.  
  659.      The file naming conventions used are also optional. However, it is recom-
  660.      mended that you follow them.  When PC-Draft saves a file of a particular
  661.      type, say a font file for instance, it uses the appropriate filename
  662.      extension unless you override it by entering a different extension.  This
  663.      helps prevent accidental data loss by overwriting files and by loading the
  664.      wrong type of file.
  665.  
  666.  
  667.      The default filename extensions are:
  668.  
  669.      Screen dump files:       filename.PIC
  670.      Drawing files:           filename.DWG
  671.      Pattern files:           filename.PAT
  672.      Font files:              filename.FON
  673.      Object files:            filename.OBJ
  674.      Macro files:             filename.MAC
  675.      Graph Point files:       filename.PTS
  676.      PIX program files:       filename.SCR
  677.      GEM IMG files:           filename.IMG
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.      Page 6                                                          PC-Draft II
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.                                       The Basics
  707.  
  708.      There are a few basic things you must know to start using PC-Draft and
  709.      begin making your own drawings. This chapter will give you a quick over-
  710.      view. Each drawing command and other parts of the PC-Draft system will be
  711.      dealt with in more detail in later chapters.
  712.  
  713.      Starting PC-Draft
  714.  
  715.      To start PC-Draft, type the command: DRAFT2 with the files DRAFT2.EXE and
  716.      DRAFT2.CFG on the currently logged drive. The Copyright notice will appear
  717.      for a moment, then it will display the graphics screen.
  718.  
  719.  
  720.  
  721.      Cursor Movement
  722.  
  723.      The cursor will appear as a small cross in center screen.  Press the cursor
  724.      movement keys on the numeric keypad (or move the mouse) to move about the
  725.      screen.
  726.  
  727.      Initially, the cursor will move 8 dots for each key pressed. As you move
  728.      the cursor you will notice that the X and Y location is shown in the
  729.      control panel at screen right. Also shown is the current cursor increment
  730.      value. With a mouse, the cursor moves smoothly along with the mouse move-
  731.      ment. You may find that for precise positioning, the arrow keys give you
  732.      more control. 
  733.  
  734.      Cursor Increment
  735.  
  736.      The amount the cursor moves (in dots or pixels) is called the cursor incre-
  737.      ment. To change the cursor increment value, enter a number (using the top
  738.      row of number keys, or press [Num Lock] to use the numeric key pad keys). 
  739.      For instance, enter 24 to cause the cursor to move 24 dots for each cursor
  740.      movement keystroke.
  741.  
  742.      You will quickly get into the habit of adjusting the cursor increment value
  743.      to a larger number to quickly move to a new position on the screen, then to
  744.      a smaller number (try 1) for detailed work.
  745.  
  746.      Suspend Cursor
  747.  
  748.      Pressing the [S] key Suspends the current cursor increment value, causing
  749.      the cursor to move one dot at a time.  Pressing [S] again restores the
  750.      increment value.  This allows you to quickly change from coarse to fine
  751.      movements and is also useful when creating graphics keyboard macros as
  752.      described below. Note that while in the [W]rite mode, you can suspend
  753.      cursor increment by pressing [Alt + S].
  754.  
  755.  
  756.  
  757.  
  758.  
  759.      Basics                                                               Page 7
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.      Change Cursor
  773.  
  774.      There are two cursor types (three if you have a mouse).  Initially, the
  775.      cursor appears as a small cross.  Press [K] ([K]ursor) to change the cursor
  776.      to a full screen cross.  This cursor type is helpful when positioning lines
  777.      and objects in line with other elements in your drawing. Press [K] again to
  778.      toggle between the two cursor types. If you have a MicroSoft mouse, you can
  779.      change the mouse cross cursor to an arrow by pressing [Alt + C]. Press it
  780.      again to return to the cross. You can still use the full screen cursor by
  781.      pressing [K].
  782.  
  783.  
  784.      Menu Selections
  785.  
  786.      Initially, the eight main menu selections are displayed across the top of
  787.      the screen. To make a selection, press its corresponding function key.  For
  788.      instance, press [F2] (or the [/] key) (or left mouse button) to display the
  789.      pop-up Draw functions menu.
  790.  
  791.      With the pop-up menu displayed you may now:
  792.  
  793.      1.   Press the Escape key: [Esc] (both mouse buttons), to exit from a menu
  794.           without making a choice.
  795.  
  796.      2.   Select a choice from the menu by:
  797.  
  798.           a.   press the [L]etter in brackets for your choice.
  799.           b.   use the arrow keys: [^] and [v] to move the reverse video cursor
  800.                to select your choice.  Then press [Enter] (or the mouse right
  801.                button) to make your selection.
  802.  
  803.      3.   Press the left or right arrow keys: [<] or [>] to move to another menu
  804.           (or move the mouse right or left).
  805.  
  806.      For example; press [F2], then press [B] for the [B]ox command, then press
  807.      [Enter]. The Draw menu will disappear.  Now, move the cursor. A box will
  808.      form with its diagonal corners determined by the original cursor position
  809.      and the opposing current cursor position.  When you are satisfied with the
  810.      final position of the box, press [Enter] (right mouse button) to complete
  811.      the [B]ox command.
  812.  
  813.      Most of the other menus work the same, press the function key, then up and
  814.      down arrows, then [Enter].
  815.  
  816.      Display Menu Bar
  817.  
  818.      By pressing the [F1] key, you can pop-off the menu bar to allow full screen
  819.      drawing.  When you press [F1] again, the menu bar will pop-up again. The
  820.      drawing obscured by the menu, will be untouched, but inaccessible, until
  821.      you pop-off the menu.
  822.  
  823.  
  824.  
  825.      Page 8                                                          PC-Draft II
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.      The Control Panel
  840.  
  841.      The panel along the right side of the screen shows:
  842.  
  843.      o    The current X and Y cursor location,
  844.      o    The current cursor increment value (C = 8),
  845.      o    The current drawing mode,
  846.      o    The status of the suspend (cursor increment) function,
  847.      o    The status of the snap function,
  848.      o    The current paint pattern is shown,
  849.      o    Below the pattern box, is a box that represents the full drawing are-
  850.           a. Within is a smaller box representing the current screen window. As
  851.           you move the screen window (with [Ctrl + >] for example), the box will
  852.           show your current location.
  853.      o    The number under the drawing box indicates the number of the current
  854.           screen window. This is the number you would enter when using the [.]
  855.           Move command to jump directly to a new screen window position.
  856.      o    The amount of free memory is shown at the bottom. As you move the
  857.           screen window to new areas of the full drawing, you will notice this
  858.           number getting smaller.
  859.  
  860.      You can pop-off the control panel by pressing [Alt + P] for full screen
  861.      drawing.
  862.  
  863.      The Drawing Area
  864.  
  865.                               +----+----+
  866.                Initial        |  1 |  2 | +----+----+
  867.                Screen   --->  +----+----+ |  3 |  4 |
  868.                Window         |  5 |  6 | +----+----+
  869.                               +----+----+ |  7 |  8 |
  870.                                 +----+----+----+----+
  871.                                 |  9 | 10 | 11 | 12 |
  872.                                 +----+----+----+----+
  873.                                 | 13 | 14 | 15 | 16 |
  874.                                 +----+----+----+----+
  875.                                 | 17 | 18 | 19 | 20 |
  876.                                 +----+----+----+----+
  877.                                 | 21 | 22 | 23 | 24 |
  878.                                 +----+----+----+----+
  879.                                 | 25 | 26 | 27 | 28 |
  880.                                 +----+----+----+----+
  881.  
  882.                                    The Drawing Area
  883.  
  884.      One screen represents 640 pixels or dots horizontally, and 200 dots verti-
  885.      cally (with the menu bar and control panel popped-off).  All drawing
  886.      operations are confined to this screen area.  You can draw a line to the
  887.      screen edge only.  However, the full drawing area available to PC-Draft is
  888.  
  889.  
  890.  
  891.      Basics                                                               Page 9
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.      1280 dots wide by 700 dots vertically. visualize the monitor screen as a
  905.      window positioned over a larger drawing area.  You can move this window up,
  906.      down, left and right to reach all parts of the drawing. The full drawing
  907.      size is two screens wide, and three and one half screens high.
  908.  
  909.      Moving around
  910.  
  911.      Here's how you move the screen window around the full drawing. To move the
  912.      screen window down on the larger drawing, press the [Ctrl + PgDn] keys
  913.      together. The screen moves one half screen width for each window movement.
  914.      To move up, press [Ctrl + PgUp]. [Ctrl + >] moves right, and [Ctrl + <]
  915.      moves left. When you reach the edge of the drawing area, you'll know it
  916.      (beep).
  917.  
  918.      Direct Move
  919.  
  920.      Pressing the [.] (the period or shifted [>]) key will pop-up a prompt box
  921.      asking for a screen window number. You can enter a number from 1 to 28 to
  922.      directly move the display window to a new area of the larger drawing.
  923.  
  924.      The full drawing is logically divided into 28 sections. Each section
  925.      represents one forth of one screen's area.
  926.  
  927.      When PC-Draft is first started, drawing sections 1, 2, 5 and 6 are display-
  928.      ed. To move the screen window to the bottom right of the drawing area;
  929.      press [.] and enter 23 to display drawing sections 23, 24, 27 and 28.
  930.  
  931.      Home
  932.  
  933.                Press [H] to move the cursor to center screen.
  934.  
  935.  
  936.      Using markers
  937.  
  938.      Sometimes you would like to set a marker at one point in your drawing to be
  939.      able to return to the same position after performing some other activity.
  940.      PC-Draft II provides a facility for up to ten separate markers that you can
  941.      set, change, and move to.
  942.  
  943.      Setting markers
  944.  
  945.      First move the cursor to the position you wish to mark. Then: Press [Shift
  946.      + any function key]. For example [Shift + F1].
  947.  
  948.      Jump to marker
  949.  
  950.      Press [Alt + the function key]. For example to jump back to the position
  951.      set with [Shift + F1], press [Alt + F1].
  952.  
  953.  
  954.  
  955.  
  956.  
  957.      Page 10                                                         PC-Draft II
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.      If you have moved the screen window to another area of the full drawing,
  971.      from where a marker is set, the screen window will be moved as necessary to
  972.      return to where the marker is set. This provides a convenient way to jump
  973.      to all parts of a large drawing.
  974.  
  975.  
  976.      Clearing the Screen
  977.  
  978.      To clear the current screen window (not the whole drawing), press the [F9]
  979.      key.  A warning pop-up will ask if you're sure.  Press the [Y] key for
  980.      [Y]es, if you are.
  981.  
  982.      To clear the entire drawing, press [Ctrl + F9]. A warning pop-up will ask
  983.      if you're sure.  Press the [Y] key for [Y]es, if you are.
  984.  
  985.      Erasing
  986.  
  987.      Since this is a pixel (raster) based graphics program, erasing selected
  988.      image areas is not as easy as it would be in an object based CAD package
  989.      where you can erase selected operations rather than areas of the screen.
  990.      Here are a few different ways to erase:
  991.  
  992.           o    Use the [E]rase command to remove the image as you move the
  993.                cursor. The size of the erase box is controlled by the current
  994.                cursor increment value. Make this value larger to erase larger
  995.                areas. (The Replace drawing mode must be on.)
  996.  
  997.                Note: if you do not have a mouse, erasing with the cursor keys is
  998.                not as smooth an operation. Suspend the cursor increment value
  999.                (with the [S] key), then as you move the erase box, you will
  1000.                remove all pixels in your path.
  1001.  
  1002.           o    Select the Transparent drawing mode (with [F5]), then re-trace
  1003.                the image to be erased.
  1004.  
  1005.           o    Select an all black pattern (with [F4], usually pattern number
  1006.                1), then with the [R]ectangle command, surround the area to be
  1007.                erased. The drawing mode must be set to Replace. (The Replace
  1008.                drawing mode must be on.)
  1009.  
  1010.           o    Surround the area to be erased with the [W]indow command, then
  1011.                press [F9] to clear the current window.
  1012.  
  1013.      Undo Command
  1014.  
  1015.      Whenever you have performed some drawing operation that changed the drawing
  1016.      in a way you did not expect (you goofed), you can press [U] to Undo. You
  1017.      can only undo the previous operation such as [B]ox or [P]aint, you cannot
  1018.      undo changes made before the last one. This is especially handy when your
  1019.      [P]aint operation spills outside of a bounded area unexpectedly.
  1020.  
  1021.  
  1022.  
  1023.      Basics                                                              Page 11
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.      Saving Your Work
  1038.  
  1039.      Once enough of your masterpiece is constructed to make you nervous about
  1040.      losing your work, you should save it to a file on disk.  You can save the
  1041.      current screen window to a .PIC file or you can save the entire drawing to
  1042.      a .DWG file.
  1043.  
  1044.           1.   Press the [F3] key to pop-up the File menu.
  1045.  
  1046.           2.   Select [S]creen to save just the current screen window (just what
  1047.                is currently displayed).
  1048.  
  1049.      Or, select [D]rawing to save your drawing that may consist of several
  1050.      screens worth. (Only those screens that you have visited will be saved. If
  1051.      you have not moved from the initial screen window, the drawing file will be
  1052.      the same size as a screen ".PIC" file.)
  1053.  
  1054.           3.   Then, select the operation from the next pop-up: [S]ave. 
  1055.  
  1056.           4.   you will be asked whether you want to save it in [C]ompressed or
  1057.                [N]ormal format. If you choose Normal format, the image will be
  1058.                saved without compression. An un-compressed .PIC file is a
  1059.                straight byte for byte dump of the high-resolution screen buffer
  1060.                and is compatible with many other graphics programs. If you
  1061.                choose Compressed format, the file will take less disk space
  1062.                (saving an average of 66%).
  1063.  
  1064.      When you read in a .PIC or .DWG file, PC-Draft will detect whether the file
  1065.      has been compressed or not and load it properly.
  1066.  
  1067.                Note: The I/O time is increased for saving and loading compressed
  1068.                files. You might want to use normal format while you are working
  1069.                on a drawing to maintain the speed advantage, then save it in
  1070.                compressed format only when you are finished making changes.
  1071.  
  1072.      The compression method is very rudimentary. A trade-off had to be made
  1073.      given code space limitations and permissible I/O delays. You can achieve a
  1074.      much greater compression and saving of disk space if you use ARC.EXE to
  1075.      archive your drawings (sometimes greater than 90%).
  1076.  
  1077.           5.   Then, enter a filename in the next pop-up.  Enter any valid DOS
  1078.                file path specification, including drive and sub-directories
  1079.                unless you want to save the file on the currently logged drive
  1080.                and path.
  1081.  
  1082.      You need not enter a filename extension. PC-Draft will automatically add
  1083.      the appropriate extension for you if you leave it off.  Simply enter a
  1084.      filename such as: "DRAWING1" or "A:SUBDIR1\DRAWING1"
  1085.  
  1086.  
  1087.  
  1088.  
  1089.      Page 12                                                         PC-Draft II
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.      PC-Draft will save your drawing as: DRAWING1.DWG (or: DRAWING1.PIC if you
  1103.      selected to save the screen). (See note below for directory searches.)
  1104.  
  1105.           6.   Press [Enter] to complete the operation.
  1106.  
  1107.      Once you've done this a few times, the operation of saving and retrieving
  1108.      screen and drawing files should become easy, intuitive and obvious with the
  1109.      help of the pop-up prompts.  The method is the same for other file opera-
  1110.      tions such as saving and retrieving patterns, fonts, objects.
  1111.  
  1112.      Directory Search
  1113.  
  1114.      When entering a filename for any file operation, you can obtain a directory
  1115.      search by pressing either the up or down arrow keys [^] or [v]. Any exist-
  1116.      ing files with extensions that match the current default will be displayed
  1117.      in the file path name window. For example, when you are retrieving a screen
  1118.      file, press the [^] key in response to the filename prompt, the name of the
  1119.      first file with a .PIC extension will be shown. Press the [^] to show the
  1120.      next (if any) .PIC file, and so on.  When the file you want to retrieve is
  1121.      shown, press [Enter] to retrieve it.
  1122.  
  1123.      To search the directory other than the current one, enter the DOS path
  1124.      information, for instance to refer to the directory containing pattern
  1125.      files, enter: "FON\", then press [^] or [v]. (You must have the '\' at the
  1126.      end.)
  1127.  
  1128.      Other useful keys to use when entering filenames:
  1129.  
  1130.      o    [<] and [>] move the cursor non-destructively.
  1131.  
  1132.      o    Backspace [<-] moves left destructively.
  1133.  
  1134.      o    The [End] key clears the field from the cursor position to the end.
  1135.  
  1136.      o    The [Esc] key restores the field to its original contents.
  1137.  
  1138.  
  1139.      Ending PC-Draft
  1140.  
  1141.      Press [F10] to exit PC-Draft. If you have made changes to your drawing but
  1142.      not saved it yet, a warning pop-up will ask if you want to. Similarly,
  1143.      changes to the current font, pattern and/or graph point values, will be
  1144.      checked and you will be warned before actually exiting to DOS. If everyth-
  1145.      ing is safely saved, when you press [F10] you will immediately be returned
  1146.      to the DOS prompt.
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.      Basics                                                              Page 13
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.                                    Drawing Commands
  1169.  
  1170.      This chapter discusses each drawing command in detail. PC-Draft provides
  1171.      both a menu based and a command based user interface. When you begin to
  1172.      learn how PC-Draft works you might find the drawing menu useful in select-
  1173.      ing the various commands. But as you become more proficient, you will
  1174.      probably find the single key command method easier and faster.
  1175.  
  1176.      Each basic drawing operation can be specified in two ways.  You can press
  1177.      [F2] (or mouse left button) to choose from the Draw menu, or you can press
  1178.      the mnemonic character associated with the command.  For example to select
  1179.      the line command either press [F2] then press [v] enough times to move the
  1180.      menu selection bar down to the "[L]ine" choice, then press [Enter] or you
  1181.      can choose from the menu by pressing: [F2][L][Enter] or don't use the menu
  1182.      at all: simply press [L] (the single key command mode).
  1183.  
  1184.      Most drawing operations follow the same sequence of operations: 
  1185.  
  1186.      1.   Position the cursor to a starting anchor point.
  1187.      2.   Select the drawing command.
  1188.      3.   Move the cursor to the desired ending point.
  1189.      4.   Press any key other than cursor movement or numeric key to complete
  1190.           the operation.
  1191.  
  1192.      Remember, at any time while moving the cursor, you can fine tune cursor
  1193.      movement or speed up cursor movement by pressing the numeric keys to change
  1194.      the current cursor increment.  Also you can press the [S] key to [S]uspend
  1195.      the cursor increment for fine work, and the [K] key to change cursor type.
  1196.  
  1197.      Line
  1198.  
  1199.      The basic element of most of your drawings is the line. The method for
  1200.      drawing lines is typical of most of the other drawing commands as well,
  1201.      involving these four steps:
  1202.  
  1203.      1.   Move the cursor to one end of the future line.
  1204.      2.   Press [L] to start the line.
  1205.      3.   Move the cursor to the other end.
  1206.      4.   Press [Enter].
  1207.  
  1208.      I think you get the idea.
  1209.  
  1210.      Multi-Line
  1211.  
  1212.      If you want to draw several connected line segments, use the [M]ulti-line
  1213.      command. Press [M] to start, move the cursor to the end point, press
  1214.      [Enter] to anchor that end, move to the next end point, press [Enter], and
  1215.      so on. Press [Esc] to end the multi-line command.
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.      Page 14                                                         PC-Draft II
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.      Free Draw
  1235.  
  1236.      The [F]ree draw command lets you draw free form lines. A continuous series
  1237.      of connected lines are drawn as you move the cursor. The coarseness of the
  1238.      line is determined by the value of the cursor increment (or how fast you
  1239.      move the mouse). Set the cursor increment value to 1 (or [S]uspend) to draw
  1240.      free form lines dot by dot (or move the mouse slower).
  1241.  
  1242.      Box
  1243.  
  1244.      Press [B] to begin the [B]ox command. The starting position is one corner
  1245.      of the box, the ending cursor position is the opposite corner.
  1246.  
  1247.      Rectangle
  1248.  
  1249.      This is similar to [B]ox, but the rectangle is filled with the current fill
  1250.      pattern. The [R]ectangle command is useful for erasing areas of the draw-
  1251.      ing, by selecting a completely blank pattern as the current fill (and the
  1252.      [R]eplace drawing mode). See below for how to select patterns.
  1253.  
  1254.      Circle
  1255.  
  1256.      Press [C] to draw a circle. The starting position is the center of the
  1257.      circle. Move the cursor outward to establish the diameter and press
  1258.      [Enter]. 
  1259.  
  1260.      Ellipse
  1261.  
  1262.      From the keyboard you start the ellipse command with [Alt + E]. As you move
  1263.      the cursor, the area of the ellipse is indicated by a rectangle. Move the
  1264.      cursor outward to establish the size of the ellipse and press [Enter]. Why
  1265.      use the rectangle instead of the ellipse shape? We decided that drawing,
  1266.      erasing, and re-drawing the actual ellipse shape as you move the cursor was
  1267.      too slow, interfering with the normal flow of drawing. 
  1268.  
  1269.      Note that from the drawing commands menu, you select the ellipse command
  1270.      with the [I] key.
  1271.  
  1272.      Curve
  1273.  
  1274.      This command works a little differently than the above two-point commands.
  1275.      You specify a series of points on the screen through which a smooth spline
  1276.      curve will be drawn. Position the cursor to the starting point for the
  1277.      curve, then press [V] for cur[V]e. Now, move the cursor to the next point,
  1278.      press any key to set a new point. A straight line will be temporarily drawn
  1279.      between points to help you keep track of the shape of your image. Continue
  1280.      entering points (up to 20 points are allowed) until you have defined the
  1281.      shape of the curve. To draw the curve, press the [Esc] key.
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.      Drawing Commands                                                    Page 15
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.      Paint
  1301.  
  1302.      Position the cursor within a bounded area on the screen. Press [P] to
  1303.      [P]aint the area with the current fill pattern. See below for how to select
  1304.      and edit patterns. Note that the selected area must be tightly bounded by
  1305.      white dots. A single missing dot provides an escape route for the pattern
  1306.      to fill adjacent areas.
  1307.  
  1308.      Arc
  1309.  
  1310.      Drawing arcs is a two step process:
  1311.  
  1312.      1.   Draw a circle where you want the arc with the correct diameter.
  1313.  
  1314.           a.   Position the cursor to the center of the arc.
  1315.           b.   Press [A] to start the arc command.
  1316.           c.   Move the cursor outward to establish the diameter. (A full circle
  1317.                will be drawn temporarily.)
  1318.           d.   Press [Enter] to set the diameter.
  1319.  
  1320.      2.   Now draw a box around the portion of the circle you want to retain as
  1321.           the arc:
  1322.  
  1323.           a.   Position the cursor to one corner of the box.
  1324.           b.   Move to the opposite corner surrounding the selected portion of
  1325.                the circle.
  1326.           c.   Press [Enter] to complete the arc command.
  1327.  
  1328.      Text
  1329.  
  1330.      To add text to your drawing, position the cursor and press [T] to enter
  1331.      [T]ext mode. The cursor will become an underline and what you type next
  1332.      will be shown using the built-in IBM graphics font. You can use backspace
  1333.      and the [<] and [>] arrow keys for simple editing and the [Enter] key to
  1334.      move to the start of the next line. 
  1335.  
  1336.      To exit text mode, press [Esc]. 
  1337.  
  1338.      Note: that this mode always positions the text on an 8 dot boundary both
  1339.      vertically and horizontally. To position the text between this 8 dot grid,
  1340.      first type the text, then exit text mode and use the [O]bject and [D]rop
  1341.      commands to move it to a new location.
  1342.  
  1343.      As you type, the cursor will wrap to the next line when you reach the right
  1344.      edge of the current window. You can set a smaller window with the [Alt + W]
  1345.      key to restrict the text to a selected area.
  1346.  
  1347.      Another way to add text is to import from an ASCII text file. You do this
  1348.      by adding two characters to your text file, a 'T' at the beginning and a
  1349.  
  1350.  
  1351.  
  1352.  
  1353.      Page 16                                                         PC-Draft II
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.      '%' at the end. this makes the file a valid PC-Draft Macro file. Refer to
  1367.      the Macro section for an example.
  1368.  
  1369.      Write
  1370.  
  1371.      Pressing [W] places you in [W]rite mode. The cursor changes to a box the
  1372.      size of the currently loaded graphics font. When first started PC-Draft
  1373.      does not have a font loaded. To experiment with [W]rite mode, press
  1374.      [F3][F][R] to retrieve a font. In the filename pop-up prompt box enter:
  1375.      FON\EURO and press [Enter]. The eurostyle font will be loaded from the font
  1376.      sub-directory: FON. Now enter [W]rite mode. You can move the box cursor
  1377.      with the arrow keys and enter text in your drawing.
  1378.  
  1379.      While in [W]rite mode you can suspend cursor increment by pressing
  1380.      [Alt + S], since the [S] key is used to write S's.
  1381.  
  1382.      Object
  1383.  
  1384.      By Object, we mean a portion of the drawing, a bit mapped image. The
  1385.      [O]bject command allows you to grab an area of the drawing from within the
  1386.      current screen window. Once you have grabbed an area, you've got an object
  1387.      which can then be [D]ropped (re-drawn) in a new position. Also objects can
  1388.      be saved in a file (.OBJ files) to create a library of objects. And, of
  1389.      course, object files can be retrieved to be added to other drawings.
  1390.  
  1391.      This command works like the [B]ox command. Position the cursor to one
  1392.      corner of the area to be grabbed. Press [O]. Then move the cursor to the
  1393.      opposite corner of the area and press [Enter] to grab it.
  1394.  
  1395.           Note:  The [O]bject and [D]rop commands allow for copying areas of the
  1396.           screen. If you want "Cut and Paste" -- deleting the original object
  1397.           area, use the "blank pattern" method for erasing as described in the
  1398.           previous chapter. So, you would: grab an [O]bject, erase it with
  1399.           [R]ectangle, then [D]rop the object.
  1400.  
  1401.      Drop Object
  1402.  
  1403.      When you have an Object currently in memory either by using the [O]bject
  1404.      command or by retrieving it from an .OBJ file, you use the [D]rop command
  1405.      to re-draw the object in the current drawing.
  1406.  
  1407.      When you press [D], the cursor takes the form of a box the size of the
  1408.      current object. Move the box to the position in your drawing where you want
  1409.      the image and press [Enter].
  1410.  
  1411.      Object Functions
  1412.  
  1413.      When you have an Object in memory as discussed above, you can manipulate it
  1414.      in several ways. All of the following commands are accessible only by
  1415.      selecting [O]bject from the Draw menu:
  1416.  
  1417.  
  1418.  
  1419.      Drawing Commands                                                    Page 17
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.           r[O]tate       turns the current object 90 degrees clockwise. Rotate
  1434.                          twice to turn the current object upside down,
  1435.  
  1436.           [R]everse      reverses the object from left to right,
  1437.  
  1438.           [E]nlarge      doubles the width of the current object,
  1439.  
  1440.           [C]ontract     halves the width of the object,
  1441.  
  1442.           [L]arge        doubles the height of the current object,
  1443.  
  1444.           [S]mall        halves its height.
  1445.  
  1446.      Although nothing seems to happen on the screen, the current Object will be
  1447.      affected in memory, which you can see by [D]roping it.
  1448.  
  1449.           Note: that for the sake of processing speed, objects are stored and
  1450.           manipulated on byte boundaries. If you do not get the result you want
  1451.           with one of the object commands. (Perhaps a part of the object is
  1452.           truncated.) Try re-grabbing the object with a greater margin (of blank
  1453.           space) around it. Then the manipulating commands will not affect the
  1454.           edges.
  1455.  
  1456.      Transfer to Font
  1457.  
  1458.      This command ([X]fer) is like the [O]bject command. With [X]fer, you grab
  1459.      an area of the drawing to be copied to a specific character in the current
  1460.      graphics font. When you press [X], the cursor becomes a box the size of the
  1461.      current font. Move the box to the image to be grabbed and press the key for
  1462.      the character to copy to. For example, to grab an image to use for the A
  1463.      character, press [A]. You can then move to another area and grab again for
  1464.      another character. Press [Enter] to exit this mode.
  1465.  
  1466.           Note: that you cannot [X]fer to numeric characters (0 to 9), or the
  1467.           [S] key because these keys are used to change the cursor increment
  1468.           value. First [X]fer the image to another temporary character. Then use
  1469.           the font copy function: [F10] (from the font editing window) to copy
  1470.           from the temporary to the one you want.
  1471.  
  1472.      Zoom
  1473.  
  1474.           [Z]oom allows you to edit a portion of your drawing at the pixel level
  1475.           more easily by enlarging the dots. Position the cursor in the center
  1476.           of the area to zoom and press [Z]. When the box appears, you can move
  1477.           the cursor with the arrow keys. The [Ins] key (mouse right button)
  1478.           toggles pixels on or off. When the cursor is over a blank space,
  1479.           pressing [Ins] will turn on the pixel there. When the cursor is over a
  1480.           pixel already on, pressing [Ins] will turn it off.
  1481.  
  1482.  
  1483.  
  1484.  
  1485.      Page 18                                                         PC-Draft II
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.      The [F9] (mouse left button) key lets you cycle through three drawing
  1499.      modes:
  1500.  
  1501.      o    Press [F9] once to draw pixels as you move.
  1502.      o    Press [F9] again to erase as you move.
  1503.      o    Press [F9] again and you are back to the original state, no change
  1504.           will be made as you move the cursor.
  1505.  
  1506.      While in Zoom mode these function keys perform new functions:
  1507.  
  1508.           [F1] shifts the zoomed image left one pixel.
  1509.           [F2] shifts the zoomed image right.
  1510.           [F3] fills the zoomed area (all white).
  1511.           [F4] clears the zoomed area (all black).
  1512.           [F5] reverses each pixel in the zoomed area.
  1513.           [F8] will print the screen with the zoom window.
  1514.  
  1515.  
  1516.      Goodies
  1517.  
  1518.      The following additional commands are accessible by menu from the goo[D]ies
  1519.      sub-menu. To see these selections, press [F2][D].
  1520.  
  1521.      Just paint
  1522.  
  1523.      Press the [J] key to begin the Just Paint mode. In this mode, as you move
  1524.      the cursor, a trail of the current pattern is left. The size of this trail
  1525.      is determined by the current cursor increment value. Like the Spray Can
  1526.      command, this works best with a mouse.
  1527.  
  1528.      To end Just Paint mode press [Esc] or both mouse buttons.
  1529.  
  1530.      SpraY Can
  1531.  
  1532.      Each time you press the [Y] key a random spray of pixels is painted within
  1533.      the bounds of the current cursor increment value using the current pattern.
  1534.      As the key is repeated, more pixels will be filled in. This command is more
  1535.      useful (easier to use) if you have a mouse, because you can move the mouse
  1536.      as you hold down the right button to spray in a continuous line, whereas,
  1537.      without the mouse, the cursor jumps by the current cursor increment value.
  1538.  
  1539.      If the current drawing mode is Transparent, the Spray Can command will
  1540.      always fill approximately 50% of the area (if you hold the [Y] down) since
  1541.      as new random pixels are drawn they will cancel out existing pixels.
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.      Drawing Commands                                                    Page 19
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.      When the drawing mode is set to "replace", blank pixels in the current
  1565.      pattern also affect (erase) the underlying image. If the drawing mode is
  1566.      set to "overlay", only "on" pixels in the pattern are painted. You can see
  1567.      how this works if you:
  1568.  
  1569.      1.   Select the solid pattern (pattern 0).
  1570.      2.   Select the Replace drawing mode.
  1571.      3.   Use the [R]ectangle command to draw a solid box.
  1572.      4.   Select another pattern with some empty space such as lines.
  1573.      5.   Start the Spra[Y] command, and draw the spray across the solid box.
  1574.           You will notice that the pattern is slowly etched into the solid area.
  1575.      6.   Now, change the drawing mode to Overlay and try step 4 and 5 again.
  1576.  
  1577.      Kursor
  1578.  
  1579.      This toggles the cursor shape back and forth from the small x to the full
  1580.      screen cross.
  1581.  
  1582.      Mouse cursor
  1583.  
  1584.      If you are using a MicroSoft compatible mouse, this command changes to the
  1585.      arrow cursor. From the keyboard press [Alt + C]. Select this command again
  1586.      to return to the normal cursor.
  1587.  
  1588.      grId
  1589.  
  1590.      To aid in positioning the cursor in line with other elements in your
  1591.      drawing, press [I] to draw a grid. The grid will be spaced horizontally and
  1592.      vertically according to the current cursor increment value. For example,
  1593.      before pressing [I], enter [48] to set your cursor increment to 48 pixels,
  1594.      then when you press [I] a 48 by 48 grid will appear.
  1595.  
  1596.      Note: When the grid is on, the drawing mode is always set to Transparent.
  1597.      This is so that the grid does not interfere with the actual drawing.
  1598.      However, you must be careful when you add drawing elements with the grid
  1599.      on, that you account for transparent mode. Also, when you grab an object
  1600.      with the grid on, the grid will be grabbed as well, so again, be careful.
  1601.      Remember this is a pixel graphics program not an object oriented CAD
  1602.      package where true layering would be more possible.
  1603.  
  1604.      The grid is always drawn in relationship to the full drawing area rather
  1605.      than just the screen. This means that as you move the screen window the
  1606.      grid is redrawn and adjusted for that window with its starting point
  1607.      remaining at the upper left corner of the full drawing area.
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.      Page 20                                                         PC-Draft II
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.      Quick view
  1631.  
  1632.      This displays the full drawing in one screen window to give you an overall
  1633.      view. From the keyboard press [Q]. Press the [Esc] key to return to the
  1634.      normal drawing.
  1635.  
  1636.      sNap
  1637.  
  1638.      When you press [N] to turn snap on, the cursor will snap into position on a
  1639.      grid intersection (whether grid is on or not). The grid intersection in
  1640.      question is determined by the current cursor increment value in relation-
  1641.      ship to the upper left corner of the full drawing area (as is true for the
  1642.      grid command above). This means that even if you have grid on, if you then
  1643.      change the cursor increment, then you turn snap on, the cursor will snap to
  1644.      the new cursor increment grid, not the grid displayed.
  1645.  
  1646.      Snap is one command that does not work well with the mouse, use the cursor
  1647.      keys instead.
  1648.  
  1649.      Color
  1650.  
  1651.      This changes the foreground color to one of the possible 15 standard IBM
  1652.      Color Graphic Adapter colors. From the keyboard press [Ctrl + F1]. Each
  1653.      time you execute this command, the color is cycled to the next in the list,
  1654.      eventually repeating.
  1655.  
  1656.      Window
  1657.  
  1658.      The [W]indow command allows you to designate a rectangular area of the
  1659.      screen to contain subsequent drawing operations. Once you have created a
  1660.      smaller than normal window (normally the drawing window is the full
  1661.      screen), the cursor will not move outside the borders of your window and
  1662.      lines and fills will not spill out. You specify the area of the window
  1663.      similar to the way you draw a box. Position the cursor to a staring corner,
  1664.      press [Alt + W], move to an opposite corner, press [Enter]. To undo the
  1665.      window, press [Alt + W] again. This command is not on the menu. 
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.      Drawing Commands                                                    Page 21
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.                                        Patterns
  1697.  
  1698.      Patterns are created as 8 by 8 pixel grids which are repeated to fill
  1699.      areas. PC-Draft keeps 8 patterns resident in memory at a time which are
  1700.      used by the [R]ectangle and [P]aint commands to fill areas and by the
  1701.      spra[Y] and [J]ust paint commands. Patterns are stored in .PAT files in the
  1702.      PAT sub-directory. You can create your own patterns or edit those that come
  1703.      with PC-Draft. The Patterns may be seen on the Pattern menu by pressing
  1704.      [F4].
  1705.  
  1706.      Loading Patterns
  1707.  
  1708.      Press the sequence: [F3][P][R] for "File menu, [P]atterns, [R]etrieve".
  1709.      Then in the filename prompt box, enter: [PAT\], then press [^] or [v] to
  1710.      step through the directory of patterns. Press [Enter] to retrieve a pat-
  1711.      tern.
  1712.  
  1713.      Selecting Patterns
  1714.  
  1715.      Press [F4] to display the list of current patterns. Either press the number
  1716.      of the pattern you want, or move the arrow cursor to point to it, then
  1717.      press [Enter] to make it the current pattern.
  1718.  
  1719.      Creating and changing Patterns
  1720.  
  1721.      Once you have selected a pattern as "current", return to the pattern pop-up
  1722.      by pressing [F4], then press [E] to edit the current pattern. Within the
  1723.      pattern editing box, you will see happy faces representing pixels that are
  1724.      "on". The cursor position is shown as a small box when over an "off" pixel
  1725.      and as a solid face when over an "on" pixel.
  1726.  
  1727.      You can move with the arrow keys (or mouse) and toggle pixels on and off
  1728.      with the space bar (mouse left button).
  1729.  
  1730.  
  1731.      Saving Patterns
  1732.  
  1733.      If you create your own patterns, you must save them in a .PAT file. Press
  1734.      [F3][P][S] for: "File menu, [P]atterns, [S]ave". Enter a filename (no
  1735.      extension, PC-Draft will add .PAT as the default extension).
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.      Page 22                                                         PC-Draft II
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.                                        Objects
  1763.  
  1764.      Above we discussed Objects and how to grab an area of the drawing as an
  1765.      object with the [O]bject command and then [D]ropped in a new position.
  1766.      Objects can also be saved in a file for later retrieval.
  1767.  
  1768.      Saving Objects
  1769.  
  1770.      To save your current object (after you have performed an [O]bject command),
  1771.      press [F3][O][S] for: "File menu, [O]bject, [S]ave". Then enter a filename
  1772.      (PC-Draft will add the default .OBJ filename extension).
  1773.  
  1774.  
  1775.      Retrieving Objects
  1776.  
  1777.      PC-Draft comes with several example object files in the OBJ sub-directory.
  1778.      Press [F3][O][R] to retrieve an object. In the filename prompt box enter:
  1779.      [OBJ\] and press [^] or [v] to step through the object directory. Press
  1780.      [Enter] to retrieve.
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.      Objects                                                             Page 23
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.                                         Fonts
  1829.  
  1830.      With PC-Draft you can load, edit and create a variety of fonts. Each font
  1831.      is stored as a file with a .FON extension.  Fonts may consist of characters
  1832.      or may be all symbols.
  1833.  
  1834.  
  1835.      Using Fonts
  1836.  
  1837.      You can load an existing font by pressing: [F3][F][R] for: "File menu,
  1838.      [F]ont, [R]etrieve". In the filename prompt box, enter: "FON\" and press
  1839.      [^] or [v] to step through the font directory. Press [Enter] to retrieve.
  1840.  
  1841.      Once you have loaded a font, when you press [W] (for [W]rite) the cursor
  1842.      becomes a box the size of the font. Some fonts contain only a subset of the
  1843.      alphabet. So, if nothing happens when you try to type a character in
  1844.      [W]rite mode, perhaps the current font has no character defined for that
  1845.      key. Try uppercase. To leave [W]rite mode, press [Enter] or [Esc].
  1846.  
  1847.  
  1848.      Creating, changing Fonts
  1849.  
  1850.      Press [F6] to pop-up the font editing window. You will see the filename of
  1851.      the current font on the top line followed by the current key shown in
  1852.      brackets (also on the top line). The current range of characters in the
  1853.      current font is shown on the next two lines in the window as, for instance:
  1854.      "START: A", "END: Z". This means that this font contains a character for
  1855.      each keyboard character between uppercase A to Z. It is important to make
  1856.      the distinction between font characters and keyboard characters. With some
  1857.      fonts loaded, for example, pressing the [A] key may draw an Apple rather
  1858.      than an 'A'.
  1859.  
  1860.      Also shown at the top of the font window is the current font's height and
  1861.      width. These are expressed in pixels. The maximum character height is 32
  1862.      pixels. The maximum width is 48.
  1863.  
  1864.      Warning:  you should not change the height and width of an existing font.
  1865.      Set these values only when you are creating a new font. If you do change
  1866.      these in an existing font, you will get scrambled images when writing with
  1867.      that font. The same applies to the range of characters in a font. Do not
  1868.      change this after the font is defined.
  1869.  
  1870.      The "SPACE:" field indicates the amount of space needed for the particular
  1871.      character currently displayed. By varying this from character to character,
  1872.      you can create proportionally spaced fonts. For instance, in a font whose
  1873.      size is 32 dots high by 24 dots wide, the 'I' character may need 8 dots of
  1874.      space, while the 'M' character would need 24 dots. To change this value
  1875.      press [F6].
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.      Page 24                                                         PC-Draft II
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.      When you press any character key that falls within the range of the current
  1895.      font, that character will be displayed for editing. You can move the cursor
  1896.      with the arrow keys. Similar to the [Z]oom command discussed above, the
  1897.      [F9] key (mouse left button) controls the editing of pixels:
  1898.  
  1899.      o    Press [F9] once to draw pixels as you move.
  1900.      o    Press [F9] again to erase as you move.
  1901.      o    Press [F9] again and you are back to the original state, no change
  1902.           will be made as you move the cursor.  In this mode, the [Ins] (mouse
  1903.           right button) key will toggle the current pixel.
  1904.  
  1905.      The usage of the other function keys is shown in the Font window:
  1906.  
  1907.      [F1] Shifts the current character left one pixel.
  1908.      [F2] Shifts it right.
  1909.      [F3] Fills the entire character.
  1910.      [F4] Clears it.
  1911.      [F5] Reverses each pixel.
  1912.      [F6] Allows you to change the character size of the font and/or the space
  1913.           for the current character.
  1914.      [F7] Allows you to change the range of characters included in this font.
  1915.      [F8] Prints the screen, including the font window.
  1916.      [F9] Toggle the setting or clearing of pixels.
  1917.      [F10]     Allows you to copy the image from another character to the
  1918.                current one.
  1919.  
  1920.           Note: that you can copy images drawn on the regular drawing area into
  1921.           specified characters in the font with the [X]fer command described in
  1922.           the Drawing Commands section above.
  1923.  
  1924.  
  1925.      Saving Fonts
  1926.  
  1927.      To save a font, press: [F3][F][S] for "File menu, [F]ont, [S]ave". And
  1928.      enter a filename. PC-Draft will automatically add the .FON file extension.
  1929.  
  1930.           Note: that fonts do not necessarily have to contain characters. They
  1931.           provide a convenient way to store a group of symbols or objects, so
  1932.           that they are available in memory all at once. For example the font
  1933.           file: FLOW.FON contains objects designed to draw flow charts:
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.      Fonts                                                               Page 25
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.                                         Macros
  1961.  
  1962.      The Macro feature of PC-Draft provides a way to store a sequence of key-
  1963.      strokes in a .MAC file for later playback. This is another way to create a
  1964.      library of images. MAC files are stored as normal ASCII text files and can
  1965.      be edited by your favorite text editor. As well as a way of saving drawing
  1966.      commands, macros can be used to provide a variety of interesting animation
  1967.      effects.
  1968.  
  1969.  
  1970.      Using Macros
  1971.  
  1972.      To start the playback of a macro (for example use one of the samples
  1973.      supplied with PC-Draft), press [F3][M][R] and in the filename prompt box
  1974.      enter: [MAC\] and press [^] or [v] to step through the MAC directory. Press
  1975.      [Enter] to start. The sequence of keystrokes stored in the selected macro
  1976.      file will be immediately played back.
  1977.  
  1978.      By changing the current cursor increment value, and then replaying the
  1979.      macro, you can redraw a given shape larger or smaller (as long as the
  1980.      cursor increment value was not changed within the macro itself).
  1981.  
  1982.  
  1983.      Creating Macros
  1984.  
  1985.      To start creating a new macro, press [F3][M][S], and enter a filename. When
  1986.      you press [Enter] to return to the drawing screen, each keystroke from that
  1987.      point on will be recorded and saved in the specified file.
  1988.  
  1989.      To end the recording of keys, press [%] (the percent symbol key). The .MAC
  1990.      file will be closed. You can then replay the macro in different positions,
  1991.      and with different cursor increment values.
  1992.  
  1993.      Suspend Cursor Increment
  1994.  
  1995.      It is useful to be able to move one pixel at a time within a macro without
  1996.      actually changing the cursor increment value so that the macro can be
  1997.      replayed for different sized objects. This can be accomplished with the
  1998.      [S]uspend command to temporarily cause the cursor to move one dot at a
  1999.      time.
  2000.  
  2001.      Relative [+/-] Cursor Increment
  2002.  
  2003.      Similarly, you can use the [+] and [-] keys to increment and decrement the
  2004.      cursor increment value to make changes relative to the value in effect when
  2005.      the macro is started.
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.      Page 26                                                         PC-Draft II
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.      .MAC file structure
  2027.  
  2028.      Macro files are created as standard ASCII text files and may be edited with
  2029.      your ASCII text editor (even EDLIN!). .MAC files simply consist of each
  2030.      keystroke as entered during their creation. Control keys are represented by
  2031.      their keyboard scan value as an ASCII character preceded by a "^" charac-
  2032.      ter.
  2033.  
  2034.      The common PC-Draft keystrokes are as follows:
  2035.  
  2036.  
  2037.                    [F1] = ^;       [^] = ^H    [Ctrl + PgUp] = ^(value 132)     
  2038.                    [F2] = ^<       [v] = ^P    [Ctrl + PgDn] = ^v
  2039.                    [F3] = ^=       [<] = ^K    [Ctrl + <]    = ^s
  2040.                    [F4] = ^>       [>] = ^M    [Ctrl + >]    = ^t 
  2041.                    [F5] = ^?       [Home] = ^G
  2042.                    [F6] = ^@       [End]  = ^O [Enter]       = (value 13)
  2043.                    [F7] = ^A       [PgUp] = ^I [Esc]         = ^[
  2044.                    [F8] = ^B       [PgDn] = ^Q
  2045.                    [F9] = ^C
  2046.                    [F10] = ^D
  2047.  
  2048.  
  2049.      For example the shadow box macro: SHADOW.MAC is:
  2050.  
  2051.      B^Q^M^M^M^HS^P^P^P^P^MR^M^M^M^M^M^MS^PR^K^K^K^KS^H^ H^HS^H%
  2052.  
  2053.      Note that the macro file must end with the "%" terminator character.
  2054.  
  2055.  
  2056.      Importing text files:
  2057.  
  2058.      You can import text from a standard ASCII text file into the graphic
  2059.      screen. To do so, you must do three things: 
  2060.  
  2061.      1.   Add the character "t" as the first character in the file. This will
  2062.           tell PC-Draft II to enter text mode. 
  2063.  
  2064.      2.   Add the character "%" to the end of the file. This tells the macro
  2065.           function that the end of the macro has been reached.
  2066.  
  2067.      3.   Rename the file so that its extension is .MAC.
  2068.  
  2069.  
  2070.      Actually what you do is convert the text file into a PC-Draft II macro
  2071.      file. Now, to import the text:
  2072.  
  2073.      1.   Set the window size as appropriate for the text in the position you
  2074.           want within the graphic screen area with the [Alt + W] command.
  2075.  
  2076.  
  2077.  
  2078.  
  2079.      Macros                                                              Page 27
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.      2.   Position the cursor to the upper left corner of the window.
  2093.  
  2094.      3.   Load the macro by pressing: [F3][M][R] and entering the name of your
  2095.           text file.
  2096.  
  2097.      That's it. The text will be imported into the window area, wrapping around
  2098.      as necessary. If your text file is too long for the window size, you will
  2099.      have to put up with a lot of beeping as the macro tries to write characters
  2100.      at the end of the window.
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.      Page 28                                                         PC-Draft II
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.                                         Graphs
  2159.  
  2160.      PC-Draft's graphing function allows you to automatically create line, bar
  2161.      and pie charts. While this function is not as sophisticated as you might
  2162.      find in business graphics programs dedicated to that purpose, PC-Draft
  2163.      provides the means to enhance your graphs with labels, pattern fills, etc.
  2164.      in a much more flexible and free form way. You are the artist. PC-Draft is
  2165.      the tool.
  2166.  
  2167.      Creating graphs involves three steps:
  2168.  
  2169.      1.   Enter a set of value pairs (for X and Y graph axis).
  2170.      2.   Select the type of graph: Bar, Line, Points, or Pie.
  2171.      3.   Draw the graph (similar to the [B]ox command or the [C]ircle command
  2172.           for pie charts).
  2173.  
  2174.      Editing Points
  2175.  
  2176.      Press [F7] to pop-up the graph menu. Then press [E] to edit points. Enter
  2177.      values for each element in your graph. Normally the values on the X axis
  2178.      would be equal for equally sized Bars in a Bar graph for example. So, enter
  2179.      a 1 for each element down the X column. The first X axis entry of zero
  2180.      signals the end. If your graph has 8 elements, the ninth entry in the X
  2181.      column should be zero. If your Y values are decimal, enter them without the
  2182.      decimal point. For instance, enter 12.34 as 1234, and then 56.00 as 5600.
  2183.  
  2184.      Saving Points
  2185.  
  2186.      You can save your graph data to a .PTS file by pressing: [F7][S] and sp-
  2187.      ecifying a filename.
  2188.  
  2189.      loading Points
  2190.  
  2191.      Similarly, you load previously saved graph data with: [F7][L].
  2192.  
  2193.      Graph Type
  2194.  
  2195.      Specify the type of graph you want to draw by pressing [F7][T]. Then select
  2196.      either [B]ar, [L]ine, [D]ots, or [P]ie.
  2197.  
  2198.      Drawing graphs
  2199.  
  2200.      Once you have entered or loaded point values and selected a graph type, you
  2201.      can draw your graph anywhere in your drawing. For graph types other than
  2202.      Pie, position the cursor at one corner of a rectangular area, press [G],
  2203.      then move the cursor to the opposite corner and press [Enter].
  2204.  
  2205.      PC-Draft automatically scales the graph to fill the rectangular area
  2206.      specified. To overlay two or more sets of graph point values:
  2207.  
  2208.  
  2209.  
  2210.  
  2211.      Graphs                                                              Page 29
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.      1.   Draw a bar graph for the first set of points.
  2225.      2.   Turn off the Graph s[C]ale by pressing: [F7][C] so that the scale
  2226.           indicator shows: [OFF]. This will cause PC-Draft to use the same scale
  2227.           established from the previous graph.
  2228.      3.   Load the second set of point values.
  2229.      4.   Select the drawing mode: [F5][O]verlay (see below).
  2230.      5.   Draw the graph for the second set of points in the same location as
  2231.           the first.
  2232.  
  2233.      For the Pie graph type, move the cursor to the center of a circular area,
  2234.      press [G], and move the cursor outward to size the pie chart.
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.      Page 30                                                         PC-Draft II
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.                                      Drawing Mode
  2291.  
  2292.      The drawing mode determines what happens pixel by pixel when you draw over
  2293.      existing (set) pixels. When first started PC-Draft is in [R]eplace drawing
  2294.      mode.
  2295.  
  2296.      To change drawing mode, press [F5] to pop-up the drawing mode menu. Then
  2297.      press the letter in brackets for the mode you want, or press [^] or [v] to
  2298.      move the pointer and press [Enter] to make your selection.
  2299.  
  2300.      The effect of each drawing mode is as follows:
  2301.  
  2302.      [R]eplace:     The resulting pixel equals the drawing pixel.
  2303.  
  2304.      [O]verlay:     The resulting pixel is changed only if the drawing pixel is
  2305.                     "on".
  2306.  
  2307.      [T]ransparent: The resulting Pixel is made the opposite of the drawing
  2308.                     pixel. This is "XOR" mode.
  2309.  
  2310.      You might want to experiment with the drawing mode to see how it affects
  2311.      other operations such as spra[Y] can, [J]ust paint and [P]aint.
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.      Drawing Mode                                                        Page 31
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.                                        Printing
  2357.  
  2358.      PC-Draft will print your drawing using a variety of IBM or Epson compat-
  2359.      ible dot matrix printers or a laser printers compatible with the Hewlett
  2360.      Packard LaserJet+ (Note that this includes HP's DeskJet printer). 
  2361.  
  2362.      You can print a portion of the current screen window, the whole screen or
  2363.      the entire drawing. The printing function is evoked by pressing the [F8]
  2364.      key. If you press [F8] with a pop-up menu "up", you will print the screen
  2365.      with the menu pop-up included. Otherwise, the menu bar and control panel
  2366.      will not be printed.
  2367.  
  2368.      When printing, you will be asked for a filename (after specifying printer
  2369.      type and resolution mode). If you wish to dump the printer control bytes to
  2370.      a file for later printing, enter the filename to use. You may include the
  2371.      optional drive and path designations. If you wish to immediately print,
  2372.      simply press the Enter key. You can later print the file created by this
  2373.      method from outside of PC-Draft by the DOS command:
  2374.  
  2375.           COPY /B PRTFILE PRN
  2376.  
  2377.      Note:  that you must use the /B option since the file is a binary file. For
  2378.      the same reason, do not use the DOS print command, since the file is a
  2379.      binary file containing byte values which may be interpreted by the Print
  2380.      program as tabs.
  2381.  
  2382.      This feature was added to enable you to incorporate PC-Draft images into
  2383.      word processors that allow sending files to the printer in the middle of
  2384.      the word processor document. It is also handy if you want to print several
  2385.      items at a time but do not want to wait on the slow speed of the printer.
  2386.      You can save all the images to files with a common extension (such as
  2387.      .PRT). Then later print them all with:
  2388.  
  2389.           COPY /B *.PRT PRN
  2390.  
  2391.  
  2392.      Printer resolution modes
  2393.  
  2394.      It is not always possible to get dot matrix printer output to exactly
  2395.      represent the same aspect ratio as the graphics screen. 
  2396.  
  2397.      The monitor's (in high resolution 640 by 200 dot mode) aspect ratio is 2:1. 
  2398.      It takes two horizontal dots to equal one vertical dot. A box that is 100
  2399.      pixels wide by 50 pixels high will appear square.
  2400.  
  2401.      Printers compatible with either the IBM Graphic dot matrix or the Epson dot
  2402.      matrix printers always print with a vertical resolution of 72 dots per inch
  2403.      (this is the spacing between the pins in the print head). So the perfect
  2404.      horizontal resolution to match the screen appearance is 144 dots per inch
  2405.  
  2406.  
  2407.  
  2408.  
  2409.      Page 32                                                         PC-Draft II
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.      horizontally (144:72 ratio). The Epson FX+ series printers have this
  2423.      resolution, the IBM dot matrix printer (and many compatibles) does not.
  2424.  
  2425.      The 60 dots per inch modes print two vertical dots for each one in your
  2426.      original drawing in an attempt to get as close as possible to the 2:1
  2427.      aspect ratio. 60:36 is close but not perfect. This mode fits one screen
  2428.      window on eight inch wide paper.
  2429.  
  2430.      The 240 dots per inch modes print one vertical dot for every two in your
  2431.      original drawing. The pixels in alternate lines are combined. This 240:144
  2432.      aspect ratio is better than the normal 240:72, but still does not produce
  2433.      perfectly round circles.
  2434.  
  2435.      Each printer has different graphics resolution modes. The current version
  2436.      of PC-Draft supports up to four modes for each printer supported. 
  2437.  
  2438.  
  2439.      IBM dot matrix
  2440.  
  2441.      (Same as Okidata Microline 290 series)
  2442.  
  2443.           Mode [1]  prints at 60 dots per inch. (480 dots/8 inch line.)
  2444.           Mode [2]  prints at 120 dots per inch. (960 dots/8 inch line.)
  2445.           Mode [3]  prints at 120 dots per inch. (draft mode is faster, prints
  2446.                     every other dot.)
  2447.           Mode [4]  prints at 240 dots per inch (1920 dots/8 inch line.) this
  2448.                     fits two screens wide in 5-5/16 inches.)
  2449.  
  2450.      There is no mode for this printer that will print round circles.
  2451.  
  2452.      Epson dot matrix
  2453.  
  2454.           Mode [1]  prints at 72 dots per inch. (4576 dots/8 inch line.)
  2455.           Mode [2]  prints at 120 dots per inch. (960 dots/8 inch line.)
  2456.           Mode [3]  prints at 144 dots per inch. (1152 dots/8 inch line.) This
  2457.                     is best for round circles. However, you lose 128 dots from
  2458.                     the far right of your drawing unless you have a wide car-
  2459.                     riage printer.
  2460.           Mode [4]  prints at 240 dots per inch (1920 dots/8 inch line.) this
  2461.                     fits two screens wide in 5-5/16 inches.)
  2462.  
  2463.      HP LaserJet+
  2464.  
  2465.           (Also for HP DeskJet)
  2466.           Mode [1]  prints at 75 dots per inch. (600 dots/8 inch line.)
  2467.           Mode [2]  prints at 100 dots per inch. (800 dots/8 inch line.)
  2468.           Mode [3]  prints at 150 dots per inch. (1200 dots/8 inch line.) This
  2469.                     fills an 8-1/2 by 11 inch size printout.
  2470.           Mode [4]  prints at 300 dots per inch (2400 dots/8 inch line.) this
  2471.                     fits two screens wide in 4.26 inches.)
  2472.  
  2473.  
  2474.  
  2475.      Printing                                                            Page 33
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.      All modes for the LaserJet print double the number of pixels vertically to
  2490.      more closely match the proportions of the screen, so that squares and
  2491.      circles are printed square and round. 
  2492.  
  2493.      If your drawing is the equivalent of two screens wide, you should use the
  2494.      high density modes to fit on 8 1/2 inch wide paper.
  2495.  
  2496.      If you have a printer that you would like PC-Draft to support, please send
  2497.      a copy of the dot graphics section of your printer manual and we will
  2498.      supply you with a printer driver for your printer and add it to our collec-
  2499.      tion.
  2500.  
  2501.      IDS Microprism
  2502.  
  2503.      This has only one graphics resolution mode, so we made an attempt to allow
  2504.      two adjustments:
  2505.  
  2506.           Mode [1]  prints at normal mode.
  2507.           Mode [2]  prints at one half vertical.
  2508.  
  2509.      C.Itoh 8510-1550
  2510.  
  2511.      (same as NEC 8023A/B and SONY SMI-720)
  2512.           Mode [1]  prints at 80 dots per inch. (640 dots/8 inch line.)
  2513.           Mode [2]  prints at 96 dots per inch. (768 dots/8 inch line.)
  2514.           Mode [3]  prints at 136 dots per inch. (1088 dots/8 inch line.) 
  2515.           Mode [4]  prints at 160 dots per inch (1280 dots/8 inch line.)
  2516.  
  2517.      GEM .IMG
  2518.  
  2519.      Of great importance to users of DeskTop publishing programs like Ventura
  2520.      Publisher, is the ability to export portions of the screen, full screens,
  2521.      and/or full drawings in GEM .IMG file format. This allows inclusion of
  2522.      graphics created (or captured) with PC-Draft directly into DTP documents.
  2523.      (Also works with WordPerfect v 5.0!) Simply print (box, screen or drawing)
  2524.      using the GEM IMG choice on the printer menu as your printer choice -- you
  2525.      must give a filename (the filename should have an ".IMG" extension).
  2526.  
  2527.      This manual was created using WordPerfect 5.0. The illustrations of PC-
  2528.      Draft screens were made using this method. 
  2529.  
  2530.  
  2531.      Print current screen window
  2532.  
  2533.      Press [F8] to pop-up the print menu and select [S] for [S]creen. Then
  2534.      select a printer type. Then select a printer resolution mode: [1] - [4]
  2535.      from low to high density. Then (if you want to save the printer codes in a
  2536.      file for later printing), enter the path and filename of the file to save
  2537.  
  2538.  
  2539.  
  2540.  
  2541.      Page 34                                                         PC-Draft II
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.      the printer data. Or, (if you wish to print immediately), press the [Enter]
  2555.      key without any filename.
  2556.  
  2557.      These steps are typical for the other two printing options: [A]ll and
  2558.      [B]ox.
  2559.  
  2560.      Print full drawing
  2561.  
  2562.      Press [F8] to pop-up the print menu and select [A] for [A]ll. Then select a
  2563.      printer type and resolution mode.
  2564.  
  2565.      Print partial screen
  2566.  
  2567.      First position the cursor to one corner of a rectangular area of the screen
  2568.      to print. Press [F8] to pop-up the print menu and select [B] for [B]ox.
  2569.      After selecting the printer type, you then must position the cursor to the
  2570.      opposite corner of the area to print as if you were drawing a box. Then
  2571.      select a printer resolution mode: [1] -[4] from low to high density and
  2572.      press [Enter] (mouse right button) to start printing.
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.      Printing                                                            Page 35
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.                                     Screen Capture
  2621.  
  2622.      A program called CAPTURE.COM on the distribution diskette, allows you to
  2623.      capture screen images from other programs, save them in separate files, and
  2624.      later load them into PC-Draft. This is useful when writing software docu-
  2625.      mentation. You can add boarders around the screen and print them for later
  2626.      paste up.
  2627.  
  2628.      CAPTURE uses a the hot-key combination: [Alt]+[.]
  2629.  
  2630.      Capture is a Terminate and Stay Resident (TSR) program. When you run it
  2631.      from the DOS command line, it will announce its presence and quietly sink
  2632.      into the background and wait to be called into action (when its "hot key"
  2633.      is pressed). 
  2634.  
  2635.      When you run Capture, you must provide it with the location and starting
  2636.      file name to use to store the screen images it captures. For example, if
  2637.      you have installed PC-Draft on your hard disk in a sub-directory called
  2638.      DRAFT, you might start Capture with this command:
  2639.  
  2640.      CAPTURE C:\DRAFT\PIC\SCREENA.PIC
  2641.  
  2642.      Now Capture will store its screens in the PIC sub-directory. The first
  2643.      screen it saves will be called SCREENA.PIC, the second will be called
  2644.      SCREENB.PIC. Each subsequent .PIC file will increment the character in the
  2645.      filename just before the extension. These files are graphic pic files com-
  2646.      patible with PC-Draft regardless of whether the original screen was in text
  2647.      mode or graphics mode.
  2648.  
  2649.      To activate Capture and save the current screen to a .PIC file, you press
  2650.      the [Alt + left Shift] ([Alt + .] for Capture2) keys together. You will
  2651.      hear a beep when Capture is called. Three beeps means it successfully wrote
  2652.      a unique file to the specified directory. Only one beep means it was unable
  2653.      to create the file (could not find the directory?). Only two beeps means it
  2654.      created the file, but could not write the full 16k screen buffer, (disk
  2655.      full?).
  2656.  
  2657.      Capture will detect the current video mode and adjust. It converts text
  2658.      mode screens into bit mapped graphics suitable for PC-Draft II.
  2659.  
  2660.      Like any other TSR, Capture may have compatibility problems with other
  2661.      software, especially other TSR's. If you have trouble, try installing
  2662.      Capture by itself and adding your other TSR utilities one at a time after
  2663.      you get Capture to work.
  2664.  
  2665.      We strongly recommend the shareware utilities MARK and RELEASE. They will
  2666.      allow you to de-install Capture (and other TSR's). Look for them on your
  2667.      bulletin board.
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.      Page 36                                                         PC-Draft II
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.                               The PIX graphics language
  2687.  
  2688.      The PIX.COM program is actually a special version of PC-Draft which reads
  2689.      its input from a script file of graphic commands instead of responding to
  2690.      the keyboard. By creating such a file with your favorite text editor, you
  2691.      are in fact writing a graphics program that will be played out as an
  2692.      animated sequence of steps as PIX reads the file. PIX allows you to:
  2693.  
  2694.                o    Create a script of graphic commands to be played out in
  2695.                     animation for presentations.
  2696.  
  2697.                o    You can load and display screens and whole drawings created
  2698.                     by PC-Draft.
  2699.  
  2700.                o    You can use (and create) PC-Draft objects and macros.
  2701.  
  2702.                o    You can create new macros with PIX's procedures and looping
  2703.                     for use in PC-Draft.
  2704.  
  2705.                o    PIX has repeat looping and Procedures (subroutines).
  2706.  
  2707.                o    In place of literal values used for the drawing commands,
  2708.                     you can substitute variables.
  2709.  
  2710.                o    You can run PIX in trace mode for debugging.
  2711.  
  2712.      We have provided some sample PIX programs on your distribution disk. These
  2713.      files all have the filename extension: .SCR. To get a feel for what PIX is
  2714.      and its versatility run the demo program as follows. To start a PIX demon-
  2715.      stration, with the file PIX.COM on the current drive and DEMO.SCR in the
  2716.      SCR directory, enter the command:
  2717.  
  2718.           PIX SCR\DEMO
  2719.  
  2720.      at the DOS command prompt, and sit back and watch.
  2721.  
  2722.      PIX is a special purpose language with a few simple rules:
  2723.  
  2724.      o    The PIX source file must be created as a standard ASCII text file by
  2725.           your own text editor. EDLIN (shudder) will work if you don't have any
  2726.           other.
  2727.  
  2728.      o    Each PIX program statement must be on a line by itself.
  2729.  
  2730.      o    Numbers are always enclosed by parentheses and separated by commas,
  2731.           such as: (12,34,56,78).
  2732.  
  2733.      o    Numbers are integers (usually used to represent X and Y locations,
  2734.           Pattern, Color, or Repeat loop index.)
  2735.  
  2736.  
  2737.  
  2738.  
  2739.      PIX Language                                                        Page 37
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.      o    Key words such as LINE and CIRCLE can be abbreviated to their first
  2753.           three characters (LIN and CIR).
  2754.  
  2755.      o    Upper and lower case is not significant. The commands; LINE, line,
  2756.           Line, and LiN are all equivalent.
  2757.  
  2758.      o    White space (space character) is generally ignored, so lines can be
  2759.           indented for readability. The exception is around numbers within
  2760.           parentheses: ( 12, 34, 56 ) is not legal.
  2761.  
  2762.      o    Any text on a line following a command is ignored, perfect for com-
  2763.           ments.
  2764.  
  2765.      o    Any line beginning with a semi-colon is considered a comment.
  2766.  
  2767.      o    A number or variable on a line by itself is considered as a change to
  2768.           the cursor increment value, just as if you had typed in a number while
  2769.           using PC-Draft.
  2770.  
  2771.      o    Values used to refer to cursor positions are always in relation to the
  2772.           current screen window, not the entire drawing.
  2773.  
  2774.      Starting PIX
  2775.  
  2776.      To run PIX simply type PIX at the DOS command prompt followed by the file
  2777.      name of your script (program). If you do not specify a script file, PIX
  2778.      will search the current directory for a script file named AUTO.SCR. If this
  2779.      file is not found, PIX will ask you for a script filename. Once a valid
  2780.      script file is found, PIX immediately begins its performance. When the
  2781.      script has finished, press the [Enter] key to return to DOS.
  2782.  
  2783.      Trace mode
  2784.  
  2785.      To run PIX in trace (single step) mode, evoke PIX with a [T] command line
  2786.      argument. For example, to trace through the demo script type:
  2787.  
  2788.                          PIX T DEMO
  2789.  
  2790.      In this mode PIX will display each command line of your script file and
  2791.      wait for you to press [Enter] before executing it.
  2792.  
  2793.      Exit PIX
  2794.  
  2795.      To exit PIX before the script is completed, press any key to interrupt. PIX
  2796.      will display a pop-up window asking if you wish to exit. Enter a [Y] to
  2797.      exit or any other character to continue.
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.      Page 38                                                         PC-Draft II
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.      PIX Commands
  2819.  
  2820.      Each line in your PIX program represents a PIX command. For instance the
  2821.      following command line draws a box 20 pixels wide by 40 pixels high start-
  2822.      ing at X location 120 and Y location 10:
  2823.  
  2824.                                    Box (120,10,140,50)
  2825.  
  2826.  
  2827.  
  2828.      You could draw the same box with a series of cursor movement commands which
  2829.      emulate the way you would draw it with PC-Draft:
  2830.  
  2831.                                    10             Set cursor increment = 10
  2832.                                    Gotoxy (120,10)     goto starting position
  2833.                                    Box            Start the box
  2834.                                    down           Go down 10 pixels
  2835.                                    down           10 more = 20
  2836.                                    dright              10 down and 10 right
  2837.                                    dright              Now   we're   at  X=140,
  2838.                                                        Y=50
  2839.                                    end            This ends the box command.
  2840.                                    Quit           Exit PIX
  2841.  
  2842.  
  2843.  
  2844.  
  2845.      Note that the above is a complete PIX program. The text following each
  2846.      command is treated as a comment.
  2847.  
  2848.      Variables
  2849.  
  2850.      Pix allows you to substitute an integer variable in place of numbers used
  2851.      in the various drawing commands. A variable is identified by one of the 26
  2852.      alpha characters [A..Z]. For instance the same box described above can be
  2853.      drawn using variable substitution:
  2854.  
  2855.                                    Let A = (120)
  2856.                                    Let B = (10)
  2857.                                    Let C = (50)
  2858.                                    Box (a,b,140,c)
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864.      Note that variables can be mixed with numeric values and that upper and
  2865.      lower case character identifiers are treated as identical.
  2866.  
  2867.      Assign (LET)
  2868.  
  2869.  
  2870.  
  2871.      PIX Language                                                        Page 39
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.      You assign values to variables with the Let statement as shown:
  2886.  
  2887.           Let A = (#)
  2888.  
  2889.      (The equal sign is optional for readability, you could say:
  2890.  
  2891.           Let A (#)
  2892.  
  2893.      with the same result.
  2894.  
  2895.      Increment
  2896.  
  2897.           The following statements increment (by one) the variable B:
  2898.  
  2899.                                    Increment B
  2900.                                    Inc B
  2901.  
  2902.  
  2903.  
  2904.  
  2905.      Decrement
  2906.  
  2907.           The following statements decrement (by one) the variable C:
  2908.  
  2909.                                    Decrement C
  2910.                                    Dec C
  2911.  
  2912.  
  2913.  
  2914.  
  2915.      Cursor Movement Commands
  2916.  
  2917.      These cause the graphics cursor to move in the specified direction relative
  2918.      to the current position. How far the cursor moves is determined by the
  2919.      current cursor increment value.
  2920.  
  2921.      Right, Left, Up, Down, are the vertical and horizontal moves.
  2922.       
  2923.      URight, ULeft, DRight, DLeft, are the diagonal moves. For instance to move
  2924.      the cursor Down and to the right use the command: DRight.
  2925.  
  2926.      Gotoxy
  2927.  
  2928.           Use Gotoxy (x,y) for absolute cursor positioning. This moves the
  2929.           graphics cursor to X location 140 and Y location 86:
  2930.  
  2931.                                    Gotoxy (140,86)
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.      Page 40                                                         PC-Draft II
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.      Screen moves
  2953.  
  2954.      These commands allow you to move around the drawing (like [Ctrl + >] in PC-
  2955.      Draft:
  2956.  
  2957.      >up  corresponds to: [Ctrl + PgUp]
  2958.      >down     corresponds to: [Ctrl + PgDn]
  2959.      >left     corresponds to: [Ctrl + <]
  2960.      >right    corresponds to: [Ctrl + >]
  2961.  
  2962.  
  2963.      Or, you can move directly to a screen window number:
  2964.  
  2965.                          Move (#)  # must be between [1..28]
  2966.  
  2967.  
  2968.      Drawing Commands
  2969.  
  2970.      The following drawing commands perform functions as you might expect
  2971.      similar to PC-Draft. You can use them with the corner positions specified
  2972.      as parameters such as:
  2973.  
  2974.                                    Box (a,b,140,c)
  2975.  
  2976.  
  2977.  
  2978.  
  2979.      Or, you can use them as you would with PC-Draft with relative cursor
  2980.      movements to specify the opposite corner. Such as:
  2981.  
  2982.                                    Box
  2983.                                    DRight
  2984.                                    DRight
  2985.                                    DRight
  2986.                                    End
  2987.  
  2988.  
  2989.  
  2990.  
  2991.      These commands are:
  2992.        
  2993.           Box (x1,y1,x2,y2)
  2994.           Line (x1,y1,x2,y2)
  2995.           Circle (x1,y1,x2,y2)
  2996.           Rectangle (x1,y1,x2,y2)
  2997.           Object (x1,y1,x2,y2)
  2998.           Graph  (x1,y1,x2,y2)
  2999.           Window (x1,y1,x2,y2)
  3000.  
  3001.  
  3002.  
  3003.      PIX Language                                                        Page 41
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.      The Curve, Erase, Multi-line and Free-draw commands work a little
  3018.      differently. You specify a starting cursor position, then the command key-
  3019.      word, then a series of points, with the GOTOXY command. Then end the
  3020.      sequence of points with the END command. For example to draw a curve:
  3021.  
  3022.                                    gotoxy (50,20)
  3023.                                    Curve
  3024.                                      gotoxy (150,20)
  3025.                                      gotoxy (250,120)
  3026.                                      gotoxy (350,20)
  3027.                                      gotoxy (450,120)
  3028.                                      gotoxy (550,20)
  3029.                                      gotoxy (550,120)
  3030.                                      gotoxy (600,80)
  3031.                                    end
  3032.  
  3033.  
  3034.  
  3035.  
  3036.      or to draw multi-lines:
  3037.  
  3038.                                    gotoxy (10,10)
  3039.                                    Multi-line
  3040.                                      gotoxy (10,20)
  3041.                                      gotoxy (25,100)
  3042.                                      gotoxy (150,20)
  3043.                                      gotoxy (250,100)
  3044.                                      gotoxy (300,180)
  3045.                                    end
  3046.  
  3047.  
  3048.  
  3049.  
  3050.      You can Erase in a free form manner described above or in a straight line,
  3051.      for example:
  3052.  
  3053.                                    Erase (3,100,300,10)
  3054.  
  3055.  
  3056.  
  3057.  
  3058.      Arc
  3059.  
  3060.      The Arc command requires two sets of points. The first set establishes the
  3061.      full circle from which the desired arc will be taken. The second set of
  3062.      points describes the rectangular area which sets the boundaries for the
  3063.      arc. For example this draws a quarter circle arc:
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.      Page 42                                                         PC-Draft II
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.                                    Arc (300,100,300,10)(300,100,600,9)
  3083.  
  3084.  
  3085.  
  3086.      These next commands are single key commands which perform similarly to
  3087.      their counterparts in PC-Draft. You would first position the cursor, then
  3088.      call the command. For instance, with the Paint command, paint a circle:
  3089.  
  3090.                                    Circle (135,28,135,95)   Draw a circle
  3091.                                    Gotoxy (135,28)     Return to its center
  3092.                                    Paint               Fill  with  current pat-
  3093.                                tern
  3094.  
  3095.  
  3096.  
  3097.      They are:
  3098.  
  3099.                Paint
  3100.                Drop      (Object)
  3101.                Reverse   (Object)
  3102.                Expand    (Object)  ( double size vertically   )
  3103.                Contract  (Object)  ( halve size vertically    )
  3104.                Enlarge   (Object)  ( double size horizontally )
  3105.                Small     (Object)  ( halve size horizontally  )
  3106.                Home      (Move cursor to center screen)
  3107.                Kursor    (Toggle cursor between small x and large x)
  3108.                Undo      (Undo previous drawing command)
  3109.                Tog       (Toggle chart scale off/on)
  3110.  
  3111.      The following commands write strings of characters on the screen. They must
  3112.      be followed by the character string to write, and therefor cannot have a
  3113.      comment on the same line.
  3114.  
  3115.                Write <string> (Write "string" using the currently loaded font)
  3116.                Text  <string> (Write "string" using the IBM regular font)
  3117.  
  3118.      For example:
  3119.  
  3120.                                    Gotoxy (135,28)     Position the cursor 
  3121.                                    Write  This is my message
  3122.  
  3123.  
  3124.  
  3125.  
  3126.      Non Drawing Commands
  3127.  
  3128.                Pattern (#)    (Select pattern number [0..9] )
  3129.                Mode <MODE>    (Select Drawing Mode:
  3130.                               "Replace,Overlay,Transparent")
  3131.  
  3132.  
  3133.  
  3134.  
  3135.      PIX Language                                                        Page 43
  3136.  
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.                Type <MODE>    (Select Graph type: "Bar,Line,Dots,Pie")
  3149.                Clear          (Erase screen)
  3150.                Quit           (Exit PIX)
  3151.                Color (#)      (Select screen color. Colors are as follows:
  3152.  
  3153.                     0: Black       8: Dark Gray
  3154.                     1: Blue        9: Light Blue
  3155.                     2: Green       10: Light Green
  3156.                     3: Cyan        11: Light Cyan
  3157.                     4: Red         12: Light Red
  3158.                     5: Magenta     13: Light Magenta
  3159.                     6: Brown       14: Yellow
  3160.                     7: Light Grey  15: White  )
  3161.  
  3162.  
  3163.      File Commands
  3164.  
  3165.      Load or Save followed by: ("Screen A:PIC\SAMPLE.PIC")
  3166.           Load Screen    <FilePath>
  3167.           Save Screen    <FilePath>
  3168.           Load Drawing   <FilePath>
  3169.           Save Drawing   <FilePath>
  3170.           Load Pattern   <FilePath>
  3171.           Load Font      <FilePath>
  3172.           Load Object    <FilePath>
  3173.           Save Object    <FilePath>
  3174.           Load Macro     <FilePath>
  3175.           Save Macro     <FilePath>
  3176.           Load GraphPnts <FilePath>
  3177.  
  3178.      Program Control Statements
  3179.  
  3180.      Procedure <name>
  3181.                      .
  3182.                      .        ( Pix commands )
  3183.                      .
  3184.                     Endp      ( end proc. )
  3185.  
  3186.      Procedures must be declared before they are called (at the beginning of
  3187.      your PIX script). You are limited to a total of 50 named procedures. The
  3188.      number of command lines within each procedure is limited by memory.
  3189.      Procedures may contain any PIX commands including Repeat statements. You
  3190.      must end the procedure declaration with the Endp statement.
  3191.  
  3192.                     Repeat (#)     ( loop # times )
  3193.                      .
  3194.                      .        ( Pix commands )
  3195.                      .
  3196.                     Endr      ( end repeat )
  3197.  
  3198.  
  3199.  
  3200.  
  3201.      Page 44                                                         PC-Draft II
  3202.  
  3203.  
  3204.  
  3205.  
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.      The Repeat statement causes a series of commands to repeat a given number
  3215.      of times. There is a limit of 50 command lines within a repeat loop. You
  3216.      must end the repeat loop with the Endr statement.
  3217.  
  3218.      Other Commands
  3219.  
  3220.      End( terminate a series of cursor moves )
  3221.                     Wait (#)       ( # = 1/4 second pause )
  3222.                     Cursor              ( toggle visible cursor off/on )
  3223.                     %              ( end Record Macro     )
  3224.                     ;              ( comment )
  3225.  
  3226.      To see how the various PIX commands can be used look at the example .SCR
  3227.      files provided on the distribution disk.
  3228.  
  3229.  
  3230.      New PIX commands
  3231.  
  3232.      The PIX program has been upgraded. It now supports several new commands:
  3233.  
  3234.      Pause
  3235.  
  3236.      This command causes program execution to stop, and wait for a keystroke
  3237.      before continuing.
  3238.  
  3239.      Getkey
  3240.  
  3241.      The Getkey command allows for more interactive PIX programs. With Getkey,
  3242.      you can input a keystroke into a program variable (A to Z). You can then
  3243.      use the Case command described below to conditionally branch based on the
  3244.      key pressed. For example the command:
  3245.  
  3246.                                         Getkey A
  3247.  
  3248.  
  3249.      causes the PIX program to pause, wait for a keystroke, and when the user
  3250.      presses a key, places the key value in the variable: A.
  3251.  
  3252.      Case
  3253.  
  3254.      The Case command allows conditional branching within a PIX program. The
  3255.      case statement consists of a selector based on a program variable [A to Z]
  3256.      and a list of statements preceded by a case label. The expression deter-
  3257.      mines which statement in the list to execute. For example:
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.      PIX Language                                                        Page 45
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.                                         Getkey A
  3281.                                         Case A
  3282.                                              1 box (10,5,150,80)
  3283.                                              2 circle (10,5,150,80)
  3284.                                              3 rectangle (10,5,150,80)
  3285.                                         Endc
  3286.  
  3287.  
  3288.  
  3289.      PIX waits for the user to press a key, then assigns the value to the
  3290.      variable A, then executes one of the statements in the list depending on
  3291.      the value of A (1, 2, or 3).
  3292.  
  3293.      Note that the Case statement is ended by the key word: Endc.
  3294.  
  3295.      Jmp
  3296.  
  3297.      This allows an unconditional branch in a PIX program. The jump command must
  3298.      specify a target label. For example: 
  3299.  
  3300.                                              .
  3301.                                         Jmp LABELA
  3302.                                              .
  3303.                                              .
  3304.                                              .
  3305.                                         LABELA
  3306.                                              .
  3307.                                              .
  3308.  
  3309.  
  3310.      This will cause a jump to the label: LABELA skipping the statements between
  3311.      the Jmp and the label. Labels can be anything other than PIX key words.
  3312.      Jumps can only be forward. Pix cannot go in reverse, it reads the script
  3313.      file one line at time.
  3314.  
  3315.      The Jmp statement is most useful within a Case list. For example:
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.      Page 46                                                         PC-Draft II
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.                                         Getkey A
  3347.                                         Case A
  3348.                                              1 jmp labela
  3349.                                              2 jmp labelb
  3350.                                              3 jmp labelc
  3351.                                         Endc
  3352.                                         labela
  3353.                                         box (10,5,120.80)
  3354.                                         jmp  the_end
  3355.                                         labelb
  3356.                                         circle (10,5,120.80)
  3357.                                         jmp  the_end
  3358.                                         labelc
  3359.                                         rectangle (10,5,120.80)
  3360.                                         the_end
  3361.  
  3362.  
  3363.      Popup
  3364.  
  3365.      This allows you to open a popup window. PIX now supports up to ten such
  3366.      windows open at one time. Each window is referred to by its number (between
  3367.      1 and to). The proper syntax for Popup is: Popup (window number) (coo-
  3368.      rdinates). The window coordinates specify the upper left and lower right
  3369.      corners of the window in text coordinates (based on 25 lines of 80 charac-
  3370.      ters).
  3371.  
  3372.  
  3373.      Popdown
  3374.  
  3375.      This removes (pops down) a popup window. Its syntax is: Popdown (window
  3376.      number).
  3377.  
  3378.  
  3379.      Pgotoxy
  3380.  
  3381.      This positions the cursor in text coordinates relative to the specified
  3382.      popup window. The upper left corner of the window (in the box outline is
  3383.      coordinate: 0,0).
  3384.  
  3385.      For example the following code opens a window and displays two lines of
  3386.      text, waits for a keystroke from the user then removes the window (resto-
  3387.      ring the graphic screen below the window).
  3388.  
  3389.                                         Popup (1) (20,12,60,15)
  3390.                                         Pgotoxy (5,1)
  3391.                                         Text This is line one
  3392.                                         Text This is line two
  3393.                                         Pause
  3394.                                         Popdown (1)
  3395.  
  3396.  
  3397.  
  3398.  
  3399.      PIX Language                                                        Page 47
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.      Tgotoxy
  3414.  
  3415.      This positions the cursor in text coordinates relative to the entire screen
  3416.      based on 25 lines of 80 characters. The command: Tgotoxy (10,10) accomp-
  3417.      lishes the same as the command: Gotoxy (80,80) since each character
  3418.      occupies an 8 by 8 pixel grid.
  3419.  
  3420.      Print
  3421.  
  3422.      This allows printing of the drawing created with PIX. Simply place the
  3423.      command PRINT in your PIX script file at the point you wish to print. PIX
  3424.      will pause at that point and present a menu of printer choices:
  3425.  
  3426.                                    Select Printer
  3427.  
  3428.                                    1 - IBM graphic
  3429.                                    2 - generic Epson
  3430.                                    3 - HP-LaserJet+
  3431.  
  3432.  
  3433.  
  3434.  
  3435.      When you select the printer type a second window appears with printer
  3436.      resolution selections:
  3437.  
  3438.                                    Select Printer mode
  3439.  
  3440.                                    1 - 120 dots/in.
  3441.                                    2 - 240 dots/in.
  3442.  
  3443.  
  3444.  
  3445.  
  3446.      press [1] for low resolution (120 dpi for dot matrix printers, 150 dpi for
  3447.      LaserJet), [2] for high resolution (240 dpi for dot matrix, 300 dpi for
  3448.      LaserJet),to abort printing, press any other key. After printing starts,
  3449.      you can abort by pressing [Esc] and then [Y] to the prompt: [ Abort
  3450.      printing [Y/N]? ].
  3451.  
  3452.      You can have PIX print to a file by adding the filename as a parameter. For
  3453.      example the command:
  3454.  
  3455.                               PRINT C:\TEMP\PRINT.DMP
  3456.  
  3457.      sends the printer control codes to the file PRINT.DMP in the TEMP sub-
  3458.      directory on the C: drive.
  3459.  
  3460.      The PIX script file: CASE.SCR illustrates the above new commands.
  3461.  
  3462.  
  3463.  
  3464.  
  3465.      Page 48                                                         PC-Draft II
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475.  
  3476.  
  3477.  
  3478.  
  3479.      PC-Draft commands not supported
  3480.  
  3481.      If you thought something was missing, you're right. Some PC-Draft commands
  3482.      didn't seem to make much sense to include within the PIX language. These
  3483.      are:
  3484.  
  3485.           Grid           Snap           Print
  3486.           Xfer           Font           Zoom      Just Paint
  3487.           spraY can      Quick View
  3488.           Edit Font      Edit Pattern   Edit Graph points
  3489.           Save Font      Save Pattern   Save Graph points
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.  
  3521.  
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.      PIX Language                                                        Page 49
  3532.  
  3533.  
  3534.  
  3535.  
  3536.  
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.                                Summary of PIX commands
  3545.  
  3546.  
  3547.           Cursor Movement:
  3548.  
  3549.                right     left up   down 
  3550.                uright    uleft     dright    dleft     gotoxy (x,y)
  3551.  
  3552.           Screen moves:
  3553.  
  3554.                >up  >down     >left     >right
  3555.                Move (#)  [1..28]
  3556.  
  3557.           Functions:
  3558.  
  3559.                Pattern (#)  [0..9] ( pattern number )
  3560.                Mode  {Replace|Overlay|Transparent}
  3561.                Type  {Bar|Line|Dots|Pie}
  3562.                Clear
  3563.                Color (#) 0: Black  8: Dark Gray
  3564.                          1: Blue        9: Light Blue
  3565.                          2: Green  10: Light Green
  3566.                          3: Cyan        11: Light Cyan
  3567.                          4: Red         12: Light Red
  3568.                          5: Magenta     13: Light Magenta
  3569.                          6: Brown  14: Yellow
  3570.                          7: Light Grey  15: White
  3571.  
  3572.           Drawing:
  3573.        
  3574.                Arc (x1,y1,x2,y2)(x1,y1,x2,y2)
  3575.                Box (x1,y1,x2,y2)
  3576.                Circle (x1,y1,x2,y2)
  3577.                Curve (x1,y1,x2,y2)
  3578.                Erase (x1,y1,x2,y2)
  3579.                Free-Draw {gotoxy(x,y)..gotoxy(x,y)..end}
  3580.                Line (x1,y1,x2,y2)
  3581.                Multi-line {gotoxy(x,y)..gotoxy(x,y)..end}
  3582.                Rectangle (x1,y1,x2,y2)
  3583.                Graph  (x1,y1,x2,y2)
  3584.                Window (x1,y1,x2,y2)
  3585.                Paint
  3586.                Home
  3587.                Kursor
  3588.                Undo
  3589.                Write <string>
  3590.                Text  <string>
  3591.                Tog (chart scale)
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.      Page 50                                                         PC-Draft II
  3598.  
  3599.  
  3600.  
  3601.  
  3602.  
  3603.  
  3604.  
  3605.  
  3606.  
  3607.  
  3608.  
  3609.  
  3610.           Object Manipulation:
  3611.  
  3612.                Object (x1,y1,x2,y2)
  3613.                Drop
  3614.                Reverse
  3615.                Expand
  3616.                Enlarge
  3617.                Contract
  3618.                Small
  3619.  
  3620.           File: (Load or Save followed by:  "Screen A:PIC\SAMPLE.PIC")
  3621.  
  3622.                Load Screen    <FilePath>
  3623.                Save Screen    <FilePath>
  3624.                Load Drawing   <FilePath>
  3625.                Save Drawing   <FilePath>
  3626.                Load Pattern   <FilePath>
  3627.                Load Font      <FilePath>
  3628.                Load Object    <FilePath>
  3629.                Save Object    <FilePath>
  3630.                Load Macro     <FilePath>
  3631.                Save Macro     <FilePath>
  3632.                Load Points    <FilePath>     ( graph points )
  3633.  
  3634.           Other:
  3635.  
  3636.                Wait (#)       ( # = 1/4 second pause )
  3637.                %              ( end Record Macro     )
  3638.                ; comment
  3639.  
  3640.           Program Control:
  3641.  
  3642.                Procedure <name>
  3643.                 .
  3644.                 .
  3645.                End
  3646.  
  3647.                Repeat (#)     ( loop # times )
  3648.                 .
  3649.                 .
  3650.                End
  3651.  
  3652.                Quit      ( end PIX )
  3653.  
  3654.           Variables:    26 integer vars: [A..Z] can be used for any parm.
  3655.  
  3656.                Let X = #  ( assign value )
  3657.                Inc X           ( increment )
  3658.                Dec X           ( decrement )
  3659.  
  3660.  
  3661.  
  3662.  
  3663.      PIX Language                                                        Page 51
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.                              Summary of Drawing Commands
  3677.  
  3678.  
  3679.  
  3680.           A - Arc               N - sNap on/off      Object Manipulation
  3681.  
  3682.           B - Box               O - Object grab      E - Enlarge Object
  3683.  
  3684.           C - Circle            P - Paint            C - Contract Object
  3685.  
  3686.           D - Drop Object       Q - Quick View       L - Large Object
  3687.  
  3688.           E - Erase mode        R - Rectangle        O - rOtate Object
  3689.  
  3690.           F - Free Draw         S - Suspend          S - Small Object
  3691.  
  3692.           G - Graph             T - Text mode        Alt-E - Ellipse
  3693.  
  3694.           H - Home              U - Undo             Alt-P - Control
  3695.                                                      Panel on/off
  3696.           I - grId on/off       V - curVe
  3697.  
  3698.           J - Just Paint        W - Write            - (minus) - decre-
  3699.                                                      ment cursor inc-
  3700.           K - Kursor change     X - Xfer font        rement value
  3701.  
  3702.           L - Line              Y - spraY can        + (plus) -
  3703.                                                      increment cursor
  3704.           M - Multi-line        Z - Zoom             increment value
  3705.  
  3706.           F1 - F Key menu                            . (period) - Direct
  3707.                                 F2 - Drawing menuon/offMove
  3708.  
  3709.                                 F4 - PatternsF3 - File menu
  3710.                                                      Shift F1-F10 - Set
  3711.                                 F6 - Font EditorF5 - Drawing modeMarker
  3712.           menu
  3713.                                 F8 - Print           Alt F1-F10 - Move
  3714.           F7 - Graphs menu                           to Marker
  3715.                                 F10 - Exit
  3716.           F9 - Erase Screen                          Alt W - Window
  3717.                                 Ctrl-F1 - change     Off/On
  3718.                                 colorAlt-F9 - Erase Draw-
  3719.           ing
  3720.  
  3721.  
  3722.  
  3723.  
  3724.  
  3725.  
  3726.  
  3727.  
  3728.  
  3729.      Page 52                                                         PC-Draft II
  3730.  
  3731.  
  3732.  
  3733.  
  3734.  
  3735.  
  3736.  
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.                                         Index
  3743.  
  3744.           Arc  16, 43                             SpraY Can  19
  3745.           Bar Graph  29                           Text  16
  3746.           Box  15, 41                             Transfer to Font  18
  3747.                Printing  35                       Window  21
  3748.           CAPTURE.COM  36                         Write (Graphic Font) 
  3749.           Circle  15, 41                               17
  3750.           Clearing the Screen  11                 Zoom  18
  3751.           Color  21, 44                      Drawing mode  20, 31
  3752.           Compressed Files  12               Drop  43
  3753.           CONFIG.SYS  4                      Drop Object  17
  3754.           Contract  43                       DWG file  12
  3755.           Contract Object  18                Ellipse  15
  3756.           Control Panel  9                   Ending PC-Draft  13
  3757.           Cursor                             Enlarge  43
  3758.                Command  20                   Enlarge Object  18
  3759.                Increment  7                  Epson  33
  3760.                Mouse  8, 20                  Erase  42
  3761.                PIX Command  45               Erasing  11
  3762.                PIX Commands  40              Exit  13
  3763.                suspend  17, 26                    Ending Macros  26
  3764.                Type  8                            PIX  38
  3765.           Curve  15, 42                      Expand  43
  3766.           Direct Move  10                    Features  1
  3767.           Directory  13                      File Names  6
  3768.                Installation  4               Files  6
  3769.           Drawing                                 .FON  24
  3770.                Printing  35                       .MAC  26
  3771.           Drawing Area  9                         .OBJ  23
  3772.           Drawing Commands                        .PAT  22
  3773.                Arc  16                            .PIC & .DWG  12
  3774.                Box  15                            .PTS  29
  3775.                Circle  15                         .SCR.  37
  3776.                Color  21                          Compressed  12
  3777.                Curve  15                          CONFIG.SYS  4
  3778.                Drop Object  17                    DRAFT2.CFG  4
  3779.                Ellipse  15                        GEM format  34
  3780.                Free Draw  15                      Import ASCII  16
  3781.                Graph  29                          Importing ASCII  27
  3782.                grId  20                           Installation  4
  3783.                Just paint  19                     Naming conventions 
  3784.                Kursor  20                              6
  3785.                Line  14                           printing to  34
  3786.                Multi-Line  14                FON file  25
  3787.                Object  17                    Fonts  24
  3788.                Paint  16                          Write command  17
  3789.                Quick view  21                Free Draw  15
  3790.                Rectangle  15                 GEM  34
  3791.                sNap  21                      Gotoxy  40
  3792.  
  3793.  
  3794.  
  3795.      Index                                                               Page 53
  3796.  
  3797.  
  3798.  
  3799.  
  3800.  
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  
  3808.           Graph  41                               IDS Microprism  34
  3809.                Points  29                         LaserJet  33
  3810.                Type  29                           Okidata  33
  3811.           Graphic Macros  26                      resolution modes  32
  3812.           Graphs  29                         Printing  32
  3813.           GrId  20                           Procedure  44
  3814.           Hercules  3                        PTS file  29
  3815.           Home  10, 43                       Quick view  21
  3816.           HP LaserJet+  33                   Rectangle  15, 41
  3817.           Import text  27                    Relative Cursor Increment 
  3818.           Installation  4                              26
  3819.           Just paint  19                     Repeat  44
  3820.           Kursor  20, 43                     Replace Drawing Mode  31
  3821.           Large Object  18                   Reverse  43
  3822.           Laser printer  32                  Reverse Object  18
  3823.           Line  14, 41                       Rotate Object  18
  3824.           Line Graph  29                     SCR file  37
  3825.           MAC file  26                       Screen
  3826.                Structure  27                      Capture  36
  3827.           Macros  26                              Printing  34
  3828.           Markers  10                        Search directory  13
  3829.           Menus  8                           Small  43
  3830.           MicroSoft  4                       Small Object  18
  3831.           Mode  31, 43                       SNap  21
  3832.           Mouse                              SpraY Can  19
  3833.                buttons  5                    Suspend
  3834.                cursor  8, 20                      Cursor  26
  3835.                driver  4                     Text  16, 43
  3836.           Move                               Tog  43
  3837.                direct  10                    Trace (PIX)  38
  3838.                screen  10                    Transfer to Font  18
  3839.                to marker  10                 Transparent Drawing Mode 
  3840.           Multi-Line  14, 42                           31
  3841.           OBJ file  23                       Undo  11, 43
  3842.           Object  17, 23, 41                 Window  21, 41
  3843.           Object Manipulation  17            Write  43
  3844.           Overlay Drawing Mode  31           Write (Graphic Font)  17
  3845.           Paint  16, 43                      Xfer  18
  3846.           PAT file  22                       Zoom  18
  3847.           Pattern  22, 43                    [K]ursor  8
  3848.           PIC file  12
  3849.                Capture  36
  3850.           Pie Graph  29
  3851.           PIX graphics language  37
  3852.           Printers  5
  3853.                C.Itoh  34
  3854.                DeskJet  33
  3855.                Epson  33
  3856.                GEM .IMG files  34
  3857.                IBM dot matrix  33
  3858.  
  3859.  
  3860.  
  3861.      Page 54                                                         PC-Draft II
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.      Index                                                               Page 55
  3928.  
  3929.  
  3930.  
  3931.  
  3932.  
  3933.